Re: ldap or active directory

From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 01/29/04


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?
>
>



Relevant Pages

  • RE: LDAP + Active Directory
    ... Subject: LDAP + Active Directory ... LDAP uses an anonymous access for reading the tree, ... This list is provided by the SecurityFocus Security Intelligence Alert ... For more information on SecurityFocus' SIA service which ...
    (Pen-Test)
  • RE: LDAP + Active Directory
    ... Subject: LDAP + Active Directory ... LDAP server on it's rootdse. ... This list is provided by the SecurityFocus Security Intelligence Alert ...
    (Pen-Test)
  • Re: domain name/LDAP redundancy
    ... The app currently contacts one of the DC's for the LDAP search however, ... uses ADO to retrieve the Distinguished Names of all users in the domain. ... adoConnection.Open "Active Directory Provider" ...
    (microsoft.public.windows.server.active_directory)
  • RE: LDAP + Active Directory
    ... Subject: LDAP + Active Directory ... current article series on Sfocus (An Audit of Active Directory Security)... ... that security in AD can get ... For more information on SecurityFocus' SIA service which ...
    (Pen-Test)
  • Re: Active directory (LDAP) name has changed itself for no reason
    ... Since yesterday morning, apparently without any cause, the LDAP name ... Netbios name of the domain is different from the active directory ... name is listed as ERPSOURCING; also the Netbios name is ERPSOURCING. ...
    (microsoft.public.windows.server.active_directory)