Directory Services

System.DirectoryServices Programming Element Differences

[This documentation is preliminary and subject to change.]

The following table lists the differences in the System.DirectoryServices programming elements when you use them to program for ADAM. For more information about the programming element, click the element name.

Programming element Difference
ADS_OPTION_ENUM enumeration Two values, ADS_OPTION_PASSWORD_PORTNUMBER and ADS_OPTION_PASSWORD_METHOD, added to facilitate the setting of passwords.

Note  To use these elements, you must use the DirectoryEntry.Invoke method. For more information, see Invoking ADSI.

ADS_PASSWORD_ENCODING_ENUM enumeration Enumeration added to facilitate the setting of passwords.

Note  To use this element, you must use the DirectoryEntry.Invoke method. For more information, see Invoking ADSI.

DirectoryEntry class Path property includes a port number to specify an ADAM instance. For more information, see LDAP ADsPath.
IADsUser::ChangePassword and IADsUser::SetPassword methods Before using these methods, you must use the IADsObjectOptions::SetOption method to set port number (ADS_OPTION_PASSWORD_PORTNUMBER) and method (ADS_OPTION_PASSWORD_METHOD).

Note  To use these elements, you must use the DirectoryEntry.Invoke method. For more information, see Invoking ADSI.

IADsAccessControlEntry::get_Trustee and IADsAccessControlEntry::put_Trustee methods ADAM security principal names use a string security identifier (SID) rather than a friendly name.

Note  System.DirectoryServices does not support the IADsAccessControlEntry interface as well as the IADsAccessControList and IADsSecurityDescriptor interfaces. You must use COM Interop to access these interfaces.

Miscellaneous The WinNT, NDS, and NWCOMPAT providers do not apply for ADAM.