Impersonation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I modified my webconfig file with the appropriate User ID and password that I
wanted the system to use. I was expecting that I would be able to verify
that it was using this ID by using the User.Identify.Name property, but this
still returns my ID and not the impersonated ID. How can I validate that the
ID I specified in the webconfig file is acutally being used?
 
The inpersonated account is a Windows account. I think you need to use

System.Security.Principal.WindowsIdentity.GetCurrent().Name.

Ryan
 
impersonation is set to true in the web config file? quick way to test is
use an invalid password, the application should fall over dead.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top