This update fixes some serious bugs and adds the ability to save changes made to an item back to the directory server:
1 ActiveDirectoryUser user;
2
3 using (Connection connection = newConnection("contoso.local", DirectoryIdentifierType.Server, false, newNetworkCredential("administrator", "password", "contoso"), AuthType.Basic))
4 {
5 user = newActiveDirectoryUser("CN=Alice, CN=Users, DC=contoso, DC=local", connection);
6 user.Refresh();
7
8 user.Description = "The quick brown fox jumps over the lazy dog";
9
10 user.Save(false);
11 }
The Save and SaveAsync methods both accept one boolean parameter. If set to true, the save operation will return before the changes have been committed to disk by the directory server (known as lazy commit). This improves performance, but increases the likelihood of data loss.
ChangeLog
Changes made from version 1.0 to version 1.1:
Added a static Open method to the ActiveDirectoryPrinicipal object, which either returns an ActiveDirectoryUser or an ActiveDirectoryGroup object
Added the ability to save changes back to server.
Fixed a bug with integrated authentication when using the Translator class
Fixed a bug which occured when an ActiveDirectoryEntry was refreshed a second time.
Fixed a bug with the ActiveDirectoryGroup class
Fixed a bug when an DirectoryOperation threw an exception.
Downloads