Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get user name, email, etc from AD?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01420727
Message ID:
01420756
Vues:
50
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform