Partager via


ADSI Element Differences

When using ADSI programming elements to develop applications for AD LDS, some differences apply.

The following table lists the differences in the ADSI programming elements when used with AD LDS. 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 AD LDS instance. For more information, see LDAP ADsPath.
IADsOpenDSObject::OpenDSObject method Path parameter includes a port number to specify an AD LDS instance. For more information, see LDAP ADsPath.
IADsUser::ChangePassword and IADsUser::SetPassword methods Before using these methods, call 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 AD LDS 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 AD LDS.