Resending - didn't get any replies.
On 3/28/08, Rocky S <rak6970(a)gmail.com> wrote:
I am very new ldap programming, so bear with me if my query is
I am trying to write a program using the OpenLDAP SDK.
The program should take an LDAP servername/port, a CN & a password.
The program should then report if the CN/password combination is correct
This is how I am trying to do this.
[ error checks removed for making it simple]
ldap_initialize(&pldap, "ldap://myhost:389) ;
int desired_version = LDAP_VERSION3;
ldap_set_option(pldap, LDAP_OPT_PROTOCOL_VERSION, &desired_version);
int ret = ldap_bind_s(pldap,
if(ret == LDAP_SUCCESS)
This works fine for for Jack/jack123.
I have another user in the directory - John who has a null/empty password
I tried both
Both cases ldap_bind_s returns 53 - which I think means LDAP UNWILLING
I know the server allows null passwords.