Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get user name, email, etc from AD?
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01420727
Message ID:
01420756
Views:
49
>Hi,
>
>Is there a class that I can use to get info on the current user (browsing my page) from the Active Directory?

Take a look at DirectoryEntry and DirectorySearcher in the System.DirectoryServices namespace. If you're under 3.5, there is also the ActiveDirectory and AccountManagement classes now available. In order to be able to get the information about the current user you need to know how to map the logged in user to AD. That means you either need to be using Windows authentication with your webpage, or have some way of associating the logged in user with a specific user account in AD (for example, you might just use the same username in both places).
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform