Directory Services

ADSI Programming Element Differences

[This documentation is preliminary and subject to change.]

When using ADSI programming elements to program for ADAM, several differences apply.

The following table lists the differences in the ADSI programming elements when used with 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 setting passwords.
ADS_PASSWORD_ENCODING_ENUM enumeration Enumeration added to facilitate setting passwords.
ADsGetObject and ADsOpenObject functions Path parameter includes a port number to specify an ADAM instance. For more information, see LDAP ADsPath.
IADsOpenDSObject::OpenDSObject method Path parameter 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).
IADsAccessControlEntry::get_Trustee and IADsAccessControlEntry::put_Trustee methods ADAM security principal names use a string security identifier (SID) rather than a friendly name.
Miscellaneous The WinNT, NDS, and NWCOMPAT providers do not apply for ADAM.