SASL response is not a SASL BindRequest

Michael Ströder michael at
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/ => 
/usr/local/openldap-REL_ENG_2_1/lib/ (0x40010000) => /usr/local/openldap-REL_ENG_2_1/lib/ 
(0x40052000) => /usr/local/cyrus-sasl/lib/ (0x40060000) => /usr/lib/ (0x40084000) => /usr/lib/ (0x400b5000) => /lib/ (0x4018b000) => /lib/ (0x402a9000) => /lib/ (0x402bb000)
         /lib/ => /lib/ (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