InfiniTec - Henning Krauses Blog

Don't adjust your mind - it's reality that is malfunctioning

Another update for the DirectoryServices library

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

Release.zip (117,601 Bytes)
Binaries of version 1.1 signed with the InfiniTec private key
InfiniTec.DirectoryServices.zip (108,984 Bytes)
Source files
Documentation.zip (367,358 Bytes)
Documentation as CHM file.

Technorati:

Posted by Henning Krause on Monday, September 18, 2006 12:00 AM, last modified on Monday, September 18, 2006 12:00 PM
Permalink | Post RSSRSS comment feed