If I turn on Anonymous authentication in IIS (IUSR.. local account) and in
web.config I enable authentication mode as Windows and impersonate=true, then
I beleive that ASP.NET should create a Windows principal based on IUSR
account token passed by IIS, but Windows principal is not being constructed.
What I am doing wrong.

RE: IIS Authentication by kdv

kdv
Wed Feb 01 15:20:33 CST 2006

I was using HttpContext.Current.User.Identity.Name which return empty and if
I use
System.Security.Principal.WindowsIdentity.GetCurrent().Name then it returns
the valid value. But I don't understand why the first one is empty. Also If I
set Windows authentication in IIS then both give valid values

Can anybody explain this behaviour

Thanks
KDV

"KDV" wrote:

> If I turn on Anonymous authentication in IIS (IUSR.. local account) and in
> web.config I enable authentication mode as Windows and impersonate=true, then
> I beleive that ASP.NET should create a Windows principal based on IUSR
> account token passed by IIS, but Windows principal is not being constructed.
> What I am doing wrong.