Windows Auth - Active Directory
From: J. Shane Kunkle (shane_at_caudillweb.com)
Date: 09/09/04
- Next message: Joe Kaplan \(MVP - ADSI\): "Re: Process class and .NET security"
- Previous message: Peter Afonin: "Re: System.UnauthorizedAccessException"
- Next in thread: Joe Kaplan \(MVP - ADSI\): "Re: Windows Auth - Active Directory"
- Reply: Joe Kaplan \(MVP - ADSI\): "Re: Windows Auth - Active Directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Joe Kaplan \(MVP - ADSI\): "Re: Process class and .NET security"
- Previous message: Peter Afonin: "Re: System.UnauthorizedAccessException"
- Next in thread: Joe Kaplan \(MVP - ADSI\): "Re: Windows Auth - Active Directory"
- Reply: Joe Kaplan \(MVP - ADSI\): "Re: Windows Auth - Active Directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|