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

koolhari

Newcomer
Joined
Sep 23, 2005
Messages
1
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
 
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.
 
Back
Top