Simple test failing

Michael Ströder michael at stroeder.com
Fri Jun 2 12:25:31 CEST 2006


Marc Lanctot wrote:
> 
> I'm trying to get pykota working with LDAP and running into problems
> connecting to the LDAP server.

Which LDAP server? Which version?

> self._ldap_call(self._l.simple_bind,who,cred,serverctrls,clientctrls)
>   File "/usr/lib64/python2.3/site-packages/ldap/ldapobject.py", line 94,
> in _ldap_call
>     result = func(*args,**kwargs)
> ldap.ENCODING_ERROR: {'desc': 'Encoding error'}
> tsunami:~ #

Which version of python-ldap are you using and which OpenLDAP libs are
used by python-ldap?

> I'm using MD5 hashes for my passwords. Could this be why? How can I tell
> Python-LDAP to use MD5 hashing? I find in the docs what the error means,
> but I don't see anything about fixing it, nor not supporting those
> hashing mechanisms...

You simply have to pass the clear-text password to the simple_bind()
method call. (You probably want to use simple_bind_s() though.)

Ciao, Michael.



More information about the python-ldap mailing list