
October 4th, 2004, 04:29 AM
|
|
Registered User
|
|
Join Date: Oct 2004
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Problem with ldap_get_option
Hello,
the function ldap_get_option always returns the error code res=0x59 (LDAP_PARAM_ERROR=A bad parameter was passed to a routine) The code looks the following:
int value, res;
LDAP *pLDAP;
pLDAP = ldap_init(NULL,LDAP_PORT);
ldap_simple_bind_s(pLDAP, "...", "...");
res = ldap_get_option(pLDAP, LDAP_OPT_SIZELIMIT, &value);
The simple_bind_s - function was successful ("..." is replaced by a user and a password). Does somebody has an idea how to avoid the error code and get (or set) an option?
|