[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
[Q] 2.0-devel fails when enabling cache in client
Hi!
I'm trying to compile LDAP client program using OpenLDAP-2.0-devel (need this
to have TLS support). If I try enable cache, using following statement:
if ((ld = ldap_init(ldaphost, LDAP_PORT)) == NULL) {
perror( "ldap_init" );
return(-1);
}
if(ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, &debug) != LDAP_OPT_SUCCESS) {
fprintf(stderr, "Unable to set LDAP debug level to %d\n", debug);
return(-1);
}
if((rc = ldap_set_option(NULL, LDAP_OPT_X_TLS, (void *) &use_tls)) != LDAP_SUCCESS) {
return(-1);
}
if(ldap_enable_cache(ld, cache_timeout, cache_size) == -1) {
fprintf(stderr, "ldap_enable_cache: enabling LDAP cache failed\n");
}
if(ldap_bind_s(ld, user, cred, auth_metod) != LDAP_SUCCESS) {
ldap_perror(ld,"ldap_bind");
return(-1);
}
I'm getting assertion:
assertion "BER_VALID( ber )" failed: file "decode.c", line 84
Similar code works quite well on 1.2.9.
Could someone comment or give some advice?
Thanks in advance,
--
Adrian Pavlykevych email: <pam@polynet.lviv.ua>
System Administrator phone/fax: +380 (322) 742041
State University "Lvivska Polytechnica"