SASL response is not a SASL BindRequest

Michael Ströder michael at stroeder.com
Thu Apr 17 18:34:47 CEST 2003


Stuart Bishop wrote:
> Out of the OSX box I'm getting:
 > [..]
> ldap.AUTH_UNKNOWN: {'info': 'SASL(-4): no mechanism available: No worthy 
> mechs found', 'desc': 'Unknown authentication method'}

A wild guess: The SASL plugin libs on this box are not found...

> I've also got a Redhat 7.2 box I can test from, but the RPM installed
> OpenLDAP is coredumping when I attempt to SASL auth against the ldap
> server,

This sounds like a library mix. You have to build python-ldap with exactly 
the libs the OpenLDAP client libs were built with. Check with ldd _ldap 
which shared libs are dynamically linked.

See output of ldd _ldap on my box.

$ ldd /usr/lib/python2.2/site-packages/_ldap.so
         libldap_r.so.2 => 
/usr/local/openldap-REL_ENG_2_1/lib/libldap_r.so.2 (0x40010000)
         liblber.so.2 => /usr/local/openldap-REL_ENG_2_1/lib/liblber.so.2 
(0x40052000)
         libsasl2.so.2 => /usr/local/cyrus-sasl/lib/libsasl2.so.2 (0x40060000)
         libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x40084000)
         libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x400b5000)
         libc.so.6 => /lib/libc.so.6 (0x4018b000)
         libresolv.so.2 => /lib/libresolv.so.2 (0x402a9000)
         libdl.so.2 => /lib/libdl.so.2 (0x402bb000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

> so I don't think python-ldap has much chance :-)

Well, it works with *your* server from my box.

Ciao, Michael.



More information about the python-ldap mailing list