Articles pertaining to the C# language and how it interacts with the CLR.
Querying Active Directory for User Emails

.NET offers a rich API for both Windows and Web development.  In a recent side project, I needed to develop a way to query Active Directory (AD) to retrieve user information; particurlaly the emails of the user.  Fortunetely, .NET has the System.DirectoryServices.dll assembly to make this task easy! The System.DirectoryServices namespace is the home for two very useful component classes, the DirectoryEntry and DirectorySearcher classes.  These classes use the Active Directory Services Interfaces (ADSI) to provide a easy, managed-code method for interacting with a variety of network providers.  For this quick article, I will use ADSI to programatically interact with Active...

posted @ Monday, October 11, 2004 10:12 PM | Feedback (633)