J
J. Shane Kunkle
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
(e-mail address removed)
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
(e-mail address removed)