OpenDSObject Call Returns Error 0x80072027 after Upgrade to ADSI 2.5ID: Q236005
|
When you upgrade your server to Active Directory Services Interface (ADSI) 2.5, the code using the OpenDSObject fails with the following error:
NOTE: Your OpenDSObject call is using ADS_SECURE_AUTHENTICATION to attempt to open the desired object securely.-2147016665 (0x80072027) LDAP_AUTH_METH_NOT_SUPPORTED
ADSI 2.5 changed the behavior so that an error is returned when a secure authentication call fails instead of falling back to LDAP Simple Authentication.
To workaround this issue, use one of the following:
Set obj = User.OpenDSObject("LDAP://Server:389/ou=Members,o=Microsoft", "cn=Administrator,ou=Members,o=Microsoft", "password", 0)
Set obj = User.OpenDSObject("LDAP://Server:389/ou=Members,o=Microsoft", "cn=Administrator,ou=Members,o=Microsoft", "password", ADS_USE_SSL)
Site Server 3.0 Membership does not support using ADS_SECURE_AUTHENTICATION to open an object on a Membership-authenticated directory. This authentication method will work if the membership directory is configured with Windows NT authentication. The only way to bind securely with Membership authentication is to use SSL.
For additional information, please see the following article(s) in the
Microsoft Knowledge Base:
Q236050 How to Bind to a Membership Directory with ADSI using SSL
Additional query words:
Keywords :
Version : winnt:3.0
Platform : winnt
Issue type : kbprb
Last Reviewed: July 12, 1999