Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'

為{幸葍}努か 提交于 2019-12-02 13:20:06

问题


why this error comes?

I am using windows authentication. But i am getting error

Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'

can any one help me in this how to solve this problem?


回答1:


Most likely it means you're trying to connect from an impersonated context and you did not set up constrained delegation. See Manage Kerberos Authentication Issues in a Reporting Services Environment for details and troubleshooting.




回答2:


First of all, I always prefer to use the 'impersonation' settings in the ISS configuration that do not set the user/password in the web.config. Everything was fine in the QA environment, but then I passed to the production environment and some options of the web site in production started to show the 'Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON' error.

The issue was that I copied the web-site configuration from the QA server, using the 'Save configuration to a file' option in IIS6 while creating a brand new Application Pool in the production server.

After several hours trying to solve this error, I just deleted the Application Pool, and used the 'Save configuration to a file' option to copy the Application Pool configuration and then restored it to the new server.

If you copy the web-site configuration, also copy the Application Pool configuration. That solved my problem, without changing anything about the authentication method, the database or the web-site itself.




回答3:


Reporting Setup:
I had a report accessing datasource A, with a subreport which accessed datasource B. The report connections were set to use Integrated Security.

From my development machine:
The "main" report would run perfectly fine from my development environment (as it was running everything as me.)

From the server:
I was able to execute the subreport directly, with no problem. The main report would run, with the text "Error: Subreport could not be shown."

Actual Problem:
The subreport was executing under the NTAUTH\ANON user, because it was the Reporting Services code which was calling the sub-report. This error was in the SSRS Logs: System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

Solution: Set up the sub-report data connection to execute using a SQL User login. Only grant that user execute on the particular procedure you're calling for the report. This allowed me to get the report working without involving other departments that controlled the application servers (modifying web.configs or IIS configurations)



来源:https://stackoverflow.com/questions/8718867/login-failed-for-user-nt-authority-anonymous-logon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!