|
|
This article is third in the series demonstrating the use of Active Directory in ASP.Net. The first article Using Active Directory In ASP.Net - Dump Schema Informations demonstrated how to get the schema information. In this article we will use the basics discussed earlier to enumerate the Active Direftory Groups.
This article demonstrates the use of following namespaces and classes.
The basics steps to implement the enumeration of Active Directory Users remain the same as discussed in first article. The only difference is the query that is used to search for the Users.
We have added a new method, GetGroupsList in ADSIUtil
class. This method sets the appropriate search criteria filter to look for all
the Active Directory Groups. To get the list of Groups, the filter is set to
look for Group object class.
SearchResultCollection results; DirectorySearcher srch = new DirectorySearcher(m_obDirEntry); srch.Filter = "(objectClass=Group)"; results = srch.FindAll();
For any comments or suggestions, feel free to contact us at softomatix@pardesiservices.com
| Home About us Contact us Copyright |
|
Copyright (c) 1999-2002 Pardesi Services LLC |