Re: Getting the users fullname (Display Name in AD)
From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 10/08/03
- Next message: Michael Giagnocavo [MVP]: "Re: Urgent encryption help needed"
- Previous message: Keith Patrick: "Declarative FileIOPermission and variable directories"
- In reply to: Tore Eriksmoen: "Getting the users fullname (Display Name in AD)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 8 Oct 2003 10:15:01 -0500
I would suggest doing a search for the user by samAccountName using the
DirectorySearcher component in the System.DirectoryServices namespace. With
that, you can view additional AD attributes of the user including their
display name and full name.
There is more information here:
There are also a few gotchas with using System.DirectoryServices in ASP.NET
due to security context and delegation issues that you should know about:
http://support.microsoft.com/default.aspx?scid=kb;en-us;329986
HTH,
Joe K.
"Tore Eriksmoen" <tore.eriksmoen@statoil.com> wrote in message
news:0c2401c38d96$05d9b370$a401280a@phx.gbl...
> Hi!
>
> I'm developing an ASP.NET-solution using VS.NET2003 in our
> corporate intranet. It uses Windows Authentication and all
> is fine.
>
> However I want to display the authenticated users fullname
> instead of 'domain\username' which is the result when
> using the 'User.Identity.Name' property in my code.
>
> Any solution to this?
>
>
> Best regards
> Tore Eriksmoen
- Next message: Michael Giagnocavo [MVP]: "Re: Urgent encryption help needed"
- Previous message: Keith Patrick: "Declarative FileIOPermission and variable directories"
- In reply to: Tore Eriksmoen: "Getting the users fullname (Display Name in AD)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|