Windows Auth - Active Directory

From: J. Shane Kunkle (shane_at_caudillweb.com)
Date: 09/09/04


Date: Thu, 9 Sep 2004 14:20:35 -0400

Hello,

I have a web application that uses windows authentication. All the users
log in using an active directory account. When an authenticated user
performs certain actions I would like to retrieve specific information from
their active directory record (email address, etc).

I can obviously get their "domain\account" from
HttpContext.Current.User.Identity.Name - but what is the easiest way to
access active directory records in this case?

I feel like there should be some easy way to access active directory
information in this situation because the user is already authenticated (a
property of the User object, etc) however I have not found anything yet.

The best examples I have found use the DirectorySearcher and DirectoryEntry
objects but this seems to be quite a bit of work and I was hoping there
would be an easier way.

What is the recommended way to access active directory information in this
situation?

Any advice or direction is greatly appreciated - Thanks in advance,

J. Shane Kunkle
jkunkle@vt.edu



Relevant Pages

  • Help Adding Trusted Domain user to Trusting Domain Group
    ... We gave created a web application that uses AD for authorization and ... authentication. ... familiar with Active Directory). ... Add the found user object from Domain A to the group on Domain B ...
    (microsoft.public.dotnet.general)
  • Re: Windows Auth - Active Directory
    ... > I have a web application that uses windows authentication. ... > their active directory record ... > I feel like there should be some easy way to access active directory ... > property of the User object, etc) however I have not found anything yet. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: LDAP?
    ... Your suggestion on integrating Active Directory and MS Access sounds good. ... >>If you mean you want to try and integrate it with Access security, ... > adopted to use any sort of authentication method you choose, ... then launches the real database and logs into the Access ...
    (microsoft.public.access.security)
  • Re: Please Help
    ... controller that handles authentication for the computers in the domain. ... Logon and logoff are a little difficult with Active Directory. ... Use the Event logs. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Basic Authentication + IIS 5 + Windows 2000 + Frontpage 2002 = failure?
    ... Authentication" story and can relate to them all. ... the introduction of Active Directory. ... All rights ... > | Vincent Polite ...
    (microsoft.public.inetserver.iis.security)