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

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



What does Admin look like?  Is it the simple name (i.e. Admin) or is it in the form:
cn=Admin,dc=myorg,dc=com

-----Original Message-----
From: Wald, Matthias [mailto:Matthias.Wald@atm-computer.de]
Sent: Thursday, March 01, 2001 11:47 PM
To: OpenLdap Software Mailing List (E-Mail)
Subject: 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