20 Sep 04:21
Re: dbserver_get: ldap_initialize: No such file or directory
On Sat, Sep 17, 2005 at 01:40:39PM -0400, acqant wrote: > Ignacio Coupeau wrote: > > acqant wrote: > > > >> It's not the libs they exist. I did a strace -o file > >> /usr/local/sbin/perdition.pop3 and all libs exist and the user nobody > >> has perms to read it. > >> > --snip-- > > > > perhaps more debug may be useful, but seems as a problem with the > > ldap_initialize() call, as commented in some messages few weeks ago. Try > > remove these lines from perdition/db/ldap/perditiondb_ldap.c > > to force ldap_init() instead: > > > > 337,342d336 > > < #if defined(LDAP_API_FEATURE_X_OPENLDAP) && (LDAP_API_VERSION > 2000) > > < if (ldap_initialize(&connection, pldap_filter) != LDAP_SUCCESS) { > > < VANESSA_LOGGER_DEBUG_ERRNO("ldap_initialize"); > > < goto leave; > > < } > > < #else > > 348d341 > > < #endif > > > > Ignacio > > > > That worked. Any other debug I can do to find out what is wrong with > ldap_initialize? I have disabled the use of ldap_initialize() in CVS and it will likely be disabled in the next release. The problem is that it is broken in some releases of openldap, and I have no idea which versions it works on, so its difficult to test to see if the installed version works or not. If any one has some infrormation on how to construct a test that works, please let me know. For the record, the CVS version of the code is currently: #if 0 //#if defined(LDAP_API_FEATURE_X_OPENLDAP) && (LDAP_API_VERSION > 2000) err = ldap_initialize(&connection, pldap_filter); if (err != LDAP_SUCCESS) { VANESSA_LOGGER_DEBUG_UNSAFE("ldap_initialize: %s", ldap_err2string(err)); goto leave; } #else connection = ldap_init(lud->lud_host, lud->lud_port); if (!connection) { VANESSA_LOGGER_DEBUG_ERRNO("ldap_init"); goto leave; } #endif -- Horms -- -- Perdition - http://www.vergenet.net/linux/perdition/ To UNSUBSCRIBE, email to lisa@..., with a body: unsubscribe perdition-users your-email-address@... where "your-email-address@..." is YOUR email address.
RSS Feed