Re: What is retrieved by using User.Identity.Name?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


Kai wrote:
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.

.



Relevant Pages

  • Re: shadow copy in server
    ... Give it a try Steve. ... retrieve back, i will have to use the properties on the folder(parent ... recover deleted files since the original is no longer there ... The 'storage area' is also in d: ...
    (microsoft.public.windows.server.active_directory)
  • Re: Err object spontaneously resetting
    ... Steve wrote: ... >>So something happens to cause an error (in this case the DLL tries to ... >>handle this, but the act of trying to retrieve the item causes the error), ...
    (microsoft.public.vb.bugs)
  • Re: How do I remove an assigned application from a user?
    ... Assigned packages don't show up in the policy; ... Steve ... > Do you want to remove the software from the machines the user logs into? ...
    (microsoft.public.win2000.group_policy)
  • Retrieving data from a password protected site
    ... I am trying to retrieve a page from a site that is password protected ... Is this the most elegant way to achieve the goal ... Steve ... Prev by Date: ...
    (microsoft.public.excel.programming)
  • Re: Extract SMTP email address from mail receive
    ... Do u know which MAPI constant to use to retrieve the TO, CC smtp email ... Steve ... Prev by Date: ...
    (microsoft.public.office.developer.outlook.vba)