Microsoft KB Archive/236005

= OpenDSObject Call Returns Error 0x80072027 after Upgrade to ADSI 2.5 =

Article ID: 236005

Article Last Modified on 8/28/2002

-

APPLIES TO


 * Microsoft Site Server 3.0 Standard Edition

-



This article was previously published under Q236005



SYMPTOMS
When you upgrade your server to Active Directory Services Interface (ADSI) 2.5, the code using the OpenDSObject fails with the following error:

-2147016665 (0x80072027) LDAP_AUTH_METH_NOT_SUPPORTED

NOTE: Your OpenDSObject call is using ADS_SECURE_AUTHENTICATION to attempt to open the desired object securely.



CAUSE
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.



WORKAROUND
To workaround this issue, use one of the following:

Change your OpenDSObject call to use LDAP Simple Authentication:

Set obj = User.OpenDSObject("LDAP://Server:389/ou=Members,o=Microsoft", "cn=Administrator,ou=Members,o=Microsoft", "password", 0) To open an object using a method other than LDAP Simple Authentication, use ADS_USE_SSL and connect to the directory with SSL.

For example:

Set obj = User.OpenDSObject("LDAP://Server:389/ou=Members,o=Microsoft", "cn=Administrator,ou=Members,o=Microsoft", "password", ADS_USE_SSL) NOTE: For this to work, you must have a certificate installed on the Lightweight Directory Access Protocol (LDAP) server.



MORE INFORMATION
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, see the following article or articles in the Microsoft Knowledge Base:

236050 How to Bind to a Membership Directory with ADSI using SSL

Keywords: kbprb kbpending KB236005

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.