Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows Authentication impersonation failure
Message
De
07/07/2004 13:11:37
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Windows Authentication impersonation failure
Divers
Thread ID:
00921482
Message ID:
00921482
Vues:
75
I am using Windows Authentication on a web form with impersonate="true" in the web.config. On my local host I have no problem connecting with our SQL Servers with windows authentication. I put a button on the form to verify my username and it properly shows who I am with a HttpContext context.User.Identity.Name call.

When I move the app to our test development server from my local host, the who am i button still correctly identifies me, but when any attempt to contact our SQL Servers result in "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. Can anybody out there help? Thanks.

Update:
I have discovered the limitation of not flowing the user credentials beyond the IIS server. Looks like I need to re-impersonate programmatically from IIS server to SQL server. Most of the examples I have found use LogonUser with a name and password. However, the ImpersonateLoggedOnUser would seem to be just what is needed here. I will be looking into this. If anyone has already crossed this bridge, I would be happy to hear about it. Thanks.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform