Jump to content
Xtreme .Net Talk

How to retrive first name from his/her NT domain login ID.


Recommended Posts

Posted

Hi

 

Environment:IIS6,ASP.Net on windows 2003 server.

 

Problem:Try to retrive the users first and last name from his NT Logon id.

 

I use HttpContext.Current.User.Identity.Name to get domain/flastname information.But i want to get the first and last name here.

 

Any help to get it done in asp vb.net is appreciated.

 

/Koolhari

Posted

You would be smartest to use Active Directory. This way you can get their first name and last name and email and any other pertinant information that they keep in Active Directory. If you domain is not using AD then they should question why they have 2K3 Server. :)

 

Also for future reference, what you get from Context.Current.Identity.Name is the SAM Account Name is how it's referred by; somewhere else it may be domain/lastname-firstinitial or some other variation.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...