Custom Security Sample for SSRS 2019 - reporting-services

.I am implement base on Instructions in readme in this github.com
and create usename and password and salt in database UserAccounts.
When I log in to the browser, it asks me again for my username and password, and when I give it the username and password that is stored in the DataBase, it shows an error page

I finally got the result.
I handed over all the steps to the script powershell .
in address Reporting-Services/CustomSecuritySample/Configure.ps1
But before that, I stopped the Report service and after running it again, I started the service .

Related

Can't log in to keycloak admin console after setting up email

I am working with Keycloak, version 19.0.3.
I am using it in docker container, using image
quay.io/keycloak/keycloak:19.0
I am using postgresql database.
I am hosting it on azure.
I had a working setup with a few clients, scopes etc. Everything worked fine. Then I tried to set up email provider to be able to receive email confirmations. I successfully received test email and I clicked save. Then after a while my session refreshed and I no longer can log in to the administrator console. I get the following error log:
2022-11-14T09:46:17.033164754Z: [INFO] 2022-11-14 09:46:17,030 WARN [org.keycloak.events] (executor-thread-191) type=LOGIN_ERROR, realmId=[realm_id], clientId=security-admin-console, userId=null, ipAddress=[ipAddress], error=user_not_found, auth_method=openid-connect, auth_type=code, redirect_uri=[redirect_uri], code_id=[code_id], username=[username], authSessionParentId=[authSessionParentId], authSessionTabId=[authSessionTabId]
During startup the following message shows up:
Failed to add user '[admin_user]' to realm 'master': user with username exists
However this user is nowhere in the database.
The administrator log in credentials are set up using environmental variables and the whole setup is still in dev mode.
This is not the first time it happened. It happened once before however I did not connect it to the fact that setting up email account might have caused it. I thought it was because I accidentally upgraded keycloak to version 20, so I started from the beginning.
This time I set up email and came back after 20 minutes. My username and password are invalid. I have them saved in autocomplete, so its not because I wrote my credentials wrong. Nothing else changed.
I thought that maybe its because I have my realm set up to use email as username, so I tested with email address I just added, stil nothing.
I struggled with it for a long time. I am at my wits end. Any tips are welcome.
I have the same issue. Not sure whether it was caused by SMTP setup.
I have checked the databases from the back-up and the new one (after day of work that also included SMTP setup).
The admin user_entity in the database was updated to my email address somehow with keeping the user id. So with my email address and original admin password I am able to sign into the master console.
I hope it'll help.
PS. I recall now that during first 'Test connection' for SMTP execution Keycloak asked me to type an email address for testing (where the test email is going to be sent). Now I think it is at that moment the admin username was changed to my personal email.

what is default username password for Azure WebApp MySQL in App

Created WebApp with MySQL in App, but tried clicking on Manage un MySQL in APP blade, prompt for username and password.
Is there default username and password or where can i find the credentials.
The connection string of MySQL (ClearDB), please set in the following format.
Database=DBNAME;Data Source=MYSQLHOST;User Id=USERID;Password=PASSWD
You can get the database's credentials by using FTP to navigate to the
/data/mysql/MYSQLCONNSTR_localdb.ini file.
I had the same problem (almost 2 years later)
This happens when you click "Manage" to open phpMyAdmin while the website isn't running.
Just browser to your site to wake it up, then try again

Issue in my Drupal site

I am unable to login admin panel of my site which is developed in Drupal. I had tried the below link, but it's showing as "You are not authorized to login this page"
http://fujisushiflorida.com/?q=admin
After some surfing in net I had tried the below link. It had shown the login page, but the password I had entered is not correct think. So I had planned to change the password in DB. I had gone to phpmyadmin in that selected "user" table and the first reflecting data is the admin data so I had changed the password of that directly in DB also changed the function to MD5 since pwd has been encrypted. Post changing the password I tried to login but getting the error as "unrecognized username and password"
http://fujisushiflorida.com/user
Can you please help me out on this issue.
Not sure how exactly user info is stored, but generally speaking you can install new Drupal site, grab table rows of your admin account there and move them to problematic site, where you lost your account.
In the database check that you have a user with id of 1 and check that their username and email are what you are expecting.
To reset the password:
If your site is sending emails you should just be able to request a new password.
If you can create an anonymous user without admin verification create one with a password. then in the database copy the password from the new user to the number 1 user.
Otherwise create a user on a clean install or dev site and copy over the password from the database.
Try the forgot password on the login screen if your admin has your email address.
If you can SSH into the server your site is hosted on, install drush if you do not have it and use the drush user-login

How to rectify connection of MySQL to Excel 2010

Hello I have seen questions on these type of problem but I am not able to rectify my problem. Please help it.
I am taking the steps as mentioned in the below link to connect MySQL with Excel 2010.
http://www.enduserguides.com/software/office/mso/eug_mysqlodbc.html
I have created the data source with the help of administrative tool and specified the username and password of my MySQL database in computer.
In the 6th step (in excel file choosing "from data sources"> "from data connection wizard") after specifying the data source name (which I created earlier). When I am clicking on test connection it is showing message "Test connection failed because of an error in initializing provider. Unspecified error".
Also if I am specifying the username, password and then clicking on test connection then also same error.
I am not able to find the problem in this I have followed each and every step of that link.

How to make SQL Server find a login matching the name provided?

I have just restored a database backup to my local SQL Server express instance.
In management studio under the server instance node I went to: Security -> Logins -> New login...
Then I filled in a login name, password and chose SQL Server authentication. And at the bottom I selected the newly restored database to be the Default database.
At the User Mapping 'tab' at the left, I mapped the user to the newly restored database and gave it "db_owner" role.
When I try to login the following error is given in the log:
Login failed for user 'username'. Reason: Could not find a login matching the name provided. [CLIENT: ]
How can I make SQL Server find the login matching the name I provided?
Other info:
Named pipes are enabled
TCP/IP is enabled
Remote connections are allowed
Please make sure you have selected "SQL Server Authentication" mode for user you created from
Server > Security > Logins option.
Another possibility, is that you created the SQL Server login using Management Studio, and the option requiring the user to change the password on first login was checked. If you didn't immediately login with Management Studio, and change the password, then the attempt to login from the other machine is not able to pop up a dialog box to change the password and so it fails.
try it by removing user and create again.
This is old but for some one who encounters error for ASP.Net Core 2.2 using EF core and VS Code, I got error
Error Number:18456,State:1,Class:14
Login failed for user 'sa:password=MyPassword'.
I looked logs from SSMS and found error as
Login failed for user 'sa:password=MyPassowrd'. Reason: Could not find a login matching the name provided. [CLIENT: MyIp]
After searching here and there i found that I have to add Persist Security Info=False in connection string, so my connection string became like
"Default":"Persist Security Info=False;User ID=sa;Password=MyPassword;Initial Catalog=MyDb;Server=MyServerIp"
I found this format from Microsoft Docs. After that it worked fine.
persist security info=false is default. I didnot found any reason why my connection string without it was not working. From here