[Date Prev][Date Next] [Chronological] [Thread] [Top]

P.S. Ldap Error: Can't contact LDAP server



The code for binding looks like this:

ldSessionHandle = ldap_init(host, port);

ldap_set_option(ldSessionHandle, LDAP_OPT_PROTOCOL_VERSION,
&ldProtocolVersion);

resultCode = ldap_simple_bind_s(ldSessionHandle, Admin, passwd);

if(resultCode != LDAP_SUCCESS)
{
	ldResult bindResult("Ldap Bind Error: ", resultCode);
	return bindResult;
}

The code runs allways into the if statement!!
The session Handle is allways != NULL and has in every call a different
value.

Thanks for any help!

Ciao!
Matthias