Re: ldap or active directory
From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 01/29/04
- Next message: LinuxLivz: "Re: HttpWebRequest and 401"
- Previous message: Joe Kaplan \(MVP - ADSI\): "Re: Change user's group in ASP.NET"
- In reply to: Mike: "ldap or active directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 29 Jan 2004 15:04:56 -0600
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/default.asp?url=/library/en-us/sds/sds/searching_the_directory.asp?frame=true
http://support.microsoft.com/default.aspx?scid=kb;en-us;329986
Joe K.
"Mike" <csharpcoder@sbcglobal.net> wrote in message
news:%2399Xm$p5DHA.1428@TK2MSFTNGP12.phx.gbl...
> 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?
>
>
- Next message: LinuxLivz: "Re: HttpWebRequest and 401"
- Previous message: Joe Kaplan \(MVP - ADSI\): "Re: Change user's group in ASP.NET"
- In reply to: Mike: "ldap or active directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|