Forum Discussion
AndreUys
May 21, 2022Copper Contributor
IIS strange NT AUTHORITY\ANONYMOUS LOGON with Chrome browsers
I need some help troubleshooting why, when using a Chrome browser user gets error Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON' while using an Edge browser users do not. I have multiple web application hosted on that server, all intranet based using windows authentication with impersonation.
Another strange observation, when Chrome users connect to the web app they receive this error, now if they open same site in Edge, they authenticate just fine and then on refreshing the Chrome browser they are able to authenticate in Chrome....
I have a few users that can't connect in either browser.
Here is my configuration. Using IIS 10 and SQL Server. The app and db servers have Kerberos enabled using a service account.
Some key IIS settings:
App Pool - V4.0 Classic using service account, provisioned for Kerberos. Load user Profile is set to False
Authentication: (The following are enabled)
- ASP.NET Impersonation - Identity to Impersonate - Authenticated User
- Windows Authentication -
- Advanced Settings
- Accept Extended Protection and Enable Kernel-mode auth
- Providers set to Negotiate then NTLM
- Advanced Settings
App Settings:
- system.webServer/security/authentication/windowsAuthentication
- authPersistSingleRequest = False
- Enabled = True
- useAppPoolCredentials = True
- userKernelMode = True
Any guidance greatly appreciated.
Andre
Full Error:
Server Error in '/' Application.
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
|
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3770.0
- AndreUysCopper ContributorFound something on this today and tested on my machine with success. Will have a few others in my organization test before I confirm this.
We previously whitelisted our domain using the registry key Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome with AuthNegotiateDelegateWhitelist value *.mycompanyname.com
Google changed WhiteList to AllowList see article https://support.google.com/chrome/a/answer/7679408#noNonIncl
Replacing AuthNegotiateDelegateWhitelist with AuthNegotiateDelegateAllowlist seems to solve the problem