ldap or active directory

M

Mike

In my current asp.net application i'm getting the user network short name
and displaying that on the screen. What I want is the users Full name and
display that instear. How can i go about doing that, would I use LDAP or
Active directory to do that?

I never had to do this and not sure how to do it or where to start looking.

Ex: this is what i get now.
jsmith - network logon ID

what I want is:
John Smith.

is this possible?
 
J

Joe Kaplan \(MVP - ADSI\)

You talk to Active Directory via LDAP (generally with
System.DirectoryServices using .NET), so the answer is likely to be both.

The basic idea would be to use the DirectorySearcher component to search
Active Directory based on the short name (probably the samAccountName
attribute) and return the DisplayName or whatever other attribute actually
has the full name in your directory.

There are some nice samples in MSDN and some good technotes on S.DS in
ASP.NET:
http://msdn.microsoft.com/library/d...ds/sds/searching_the_directory.asp?frame=true
http://support.microsoft.com/default.aspx?scid=kb;en-us;329986

Joe K.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,126
Messages
2,570,750
Members
47,308
Latest member
TorriLangr

Latest Threads

Top