Re: What is retrieved by using User.Identity.Name?
- From: "Patrice" <http://www.chez.com/scribe/>
- Date: Wed, 22 Aug 2007 14:09:30 +0200
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
"Kai" <Kai@xxxxxxxxxxxxxxxxxxxxxxxxx> a écrit dans le message de news:
B0DB09DA-8978-4EB8-9D64-FEBB4AD05189@xxxxxxxxxxxxxxxx
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
"Kevin Spencer" wrote:
You can try using "distinguishedName" - See
http://www.microsoft.com/technet/scriptcenter/guide/sas_usr_doig.mspx?mfr=true
for more information.
.
- References:
- Re: What is retrieved by using User.Identity.Name?
- From: Kevin Spencer
- Re: What is retrieved by using User.Identity.Name?
- Prev by Date: Accessing cookies from response object
- Next by Date: Re: Postback problems
- Previous by thread: Re: What is retrieved by using User.Identity.Name?
- Next by thread: Re: What is retrieved by using User.Identity.Name?
- Index(es):
Relevant Pages
|