Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using (DirectoryEntry LDAPConnection = new DirectoryEntry("LDAP://OURDOMAIN/CN=" + name+ ",CN=Microsoft Exchange System Objects,DC=ourdomain,DC=com"))
- {
- LDAPConnection.AuthenticationType = AuthenticationTypes.Secure;
- LDAPConnection.Properties["msExchHideFromAddressLists"].Value = false;
- LDAPConnection.CommitChanges();
- }
Add Comment
Please, Sign In to add comment