c# - How to check if address lists exist in Active Directory? -


I must check that all global address lists, all address lists and all system address lists are present in active items, all before Get items from them.

Can you give me some advice or articles that I can solve my problem?

Thank you.

The address list is not an active part of the exchange's functionality, which I think is confusing people.

Anyway, the address list data is stored in the Active Directory configuration context; CN = Microsoft Exchange, CN = Services, CN = Configuration, DC = & lt; DEFAULT CONMANT INCLUDING

CN = Address lists container, CN = & lt; Exchange ORGANIZATION NAME & gt;

You can use ADSIEdit to view information.

In C #, you can use an LDAP query to obtain information for the current address list.

EDIT: Something like this: DirectoryInterity Route DSE = New directoryInterity ("LDAP: // RoutDSE"); DirectoryEntry configContainer = New directoryInterity ("LDAP: //" + rootDSE.Properties ["configuration naming" tag] value); DirectorySearcher configSearcher = New Directory Finder (configContainer); ConfigSearcher.Filter = "(and (objectClass = addressBookContainer))"; ConfigSearcher.PropertiesToLoad.Add ("DisplayName"); ConfigSearcher.PageSize = 10000; ConfigSearcher.SearchScope = SearchScope.Subtree; SearchResultCollection result = configSearcher.FindAll ();

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -