dssetcredentx Error - The Requested Object does not Exist
Keywords: dssetcredentx the requested object does not exist
Question:
I am trying to set some credentials to query an LDAP server, I would like to do it securely using the local users username and pword...I have no problem using dssetcredent("","") however when I do dssetcredentx("","", (1|64|128)), it comes back saying the requested object does not exist. If I actually put in the username and password for dssetcredentx it works fine??
Answer:
The ADSI extender attempts several methods to connect to an LDAP object depending on the credential info you supply. When you supply empty strings for user name and password the extender tries to connect using the current user's security context. If this does no work, it tries an anonymous bind. Which method you end up connecting with depends on the account you are using and the object you are connecting to.I have tried connecting to our local AD domain with the 1|64|128 settings and an admin account credentials and it works fine. I am not sure what would happen if you tried these settings on a non-AD LDAP server. You may want to try connecting to your server using the dsSetCredentx with your target user name and password, and the authentication parameter set to 0 (clear text basic authentication). If that works, you will know that the user name and password are OK.
Article ID: W15035