
Signature
HTH,
Kevin Spencer
Microsoft MVP
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
Hi Kevin,
thanks for the reply, but I don't want to retrieve anything from the Active
Directory. I just want to know how ASP / IIS 6 retrieves / computes the value
which is returned when using HttpContext.Current.User.Identity.Name? One user
logs in with DOM\UserA but it returns DOM\userA. Why is there a small 'u'
instead of a capital one? For me I could log on as I like, it ALWAYS returns
DOM\UserB (also when I login to Windows using DOM\userb).
Thanks
> You can try using "distinguishedName" - See
> http://www.microsoft.com/technet/scriptcenter/guide/sas_usr_doig.mspx?mfr=true
> for more information.
Patrice - 22 Aug 2007 13:09 GMT
It returns the "user name" whatever authentication method you are using so
the real source could differ.
My guess is that you are using integrated authentication. I'm not sure what
is the problem. AFAIK the username is not case sensitive i.e. UserA and
userA are the same user.
I would likely look at where the username is used and needs to be in a
particular case rather than to try to use a particular case from the start.
Technically I believe it returns the "Windows 2000 legacy name" or something
similar...
---
Patrice
> Hi Kevin,
>
[quoted text clipped - 13 lines]
>> http://www.microsoft.com/technet/scriptcenter/guide/sas_usr_doig.mspx?mfr=true
>> for more information.
Steve - 22 Aug 2007 13:17 GMT
More than likely, it's the AD user object. Check all properties of that
user (including the object's name itself) for the lowercase "u".
Steve C.
MCAD,MCSE,MCP+I,CNE,CNA,CCNA
> Hi Kevin,
>
[quoted text clipped - 9 lines]
>> http://www.microsoft.com/technet/scriptcenter/guide/sas_usr_doig.mspx?mfr=true
>> for more information.