In ASP, how to connect to LDAP by not using complete names?

In an ASP page, when I use the OpenDSObject to connect to LDAP, it works
when I use the complete user name.
For example:
If I use "John A Smith" or "Paul B Allen" and set strUserName = "cn=John A
Smith,ou=medel,o=uniba", the user is authenticated succesfully.

If I use "JSmith" or "PAllen" and set strUserName =
"cn=JSmith,ou=medel,o=uniba", I got an error '8007052e'.

Is this right ? Is there a way to NOT use the complete name ?
Thank you very much.

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!