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

ldapdb troubleshooting



Hi there,

well, I compiled the ldapdb auxprop in order to have a couple of services to 
authenticate with the LDAP repository. I started with imap and immediately 
ran into trouble. This is what imtest wrote to auth.log:

Mar 13 17:57:28 localhost saslpasswd2: _sasl_plugin_load failed on 
sasl_auxprop_plug_init for plugin: ldapdb
Mar 13 17:57:28 localhost saslpasswd2: auxpropfunc error invalid parameter 
supplied

What does this want to tell me? Is there a resonable approach to set up a test 
suite?

Some details about the configuration:

I put up a config: cat /usr/lib/sasl2/imapd.conf
pwcheck_method: auxprop
auxprop_plugin: ldapdb
ldapdb_uri: ldaps://adept.mgr
ldapdb_id: mailadmin
ldapdb_pw: ********
ldapdb_mech: DIGEST-MD5
However, slapd does not report anythig, i.e. the error occurs before LDAP is 
contacted.

There is the libs in /usr/lib/sasl2:
/usr/lib/sasl2/libldapdb.la
/usr/lib/sasl2/libldapdb.so -> libldapdb.so.2.0.19
/usr/lib/sasl2/libldapdb.so.2 -> libldapdb.so.2.0.19
/usr/lib/sasl2/libldapdb.so.2.0.19

The library seems to be functional in priciple:
ldd /usr/lib/sasl2/libldapdb.so.2.0.19
libldap.so.2 => /usr/lib/libldap.so.2 (0x4000c000)
liblber.so.2 => /usr/lib/liblber.so.2 (0x40041000)
libssl.so.0.9.7 => /usr/lib/i686/cmov/libssl.so.0.9.7 (0x4004e000)
libcrypto.so.0.9.7 => /usr/lib/i686/cmov/libcrypto.so.0.9.7 (0x4007f000)
libc.so.6 => /lib/tls/libc.so.6 (0x4017e000)
libresolv.so.2 => /lib/tls/libresolv.so.2 (0x402b2000)
libdl.so.2 => /lib/tls/libdl.so.2 (0x402c4000)
libcrypt.so.1 => /lib/tls/libcrypt.so.1 (0x402c7000)
libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x402f5000)
libgnutls.so.11 => /usr/lib/libgnutls.so.11 (0x4030a000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
libtasn1.so.2 => /usr/lib/libtasn1.so.2 (0x40370000)
libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0x40380000)
libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x403cd000)
libz.so.1 => /usr/lib/libz.so.1 (0x403d2000)
libnsl.so.1 => /lib/tls/libnsl.so.1 (0x403e4000)

When I get it done, I'll package a ldapdb binary for Sarge. Since most you 
find in the net about ldapdb seems to be desperate users asking for a 
package ... ;)

See ya,
 - lars.