[EMAIL PROTECTED] wrote:
> 
> Our passwords in the LDAP server are encrypted with “crypt” and stored 
> as 41bit binary values. The problem is that python-ldap doesn’t seem to 
> like 41bit passwords but only 20bit. When I try to authenticate by 
> Plone-LDAP / python-LDAP, it doesn’t work, cause the password doesn’t 
> match. (Our LDAP server stores the LDAP passwords as 41bit values by 
> standard)

1. I think you're saying bits but probably mean bytes.

2. If you're talking about using simple_bind_s() to bind to the server 
then you simply have to use the clear-text password and not the hashed one.

3. Actually there's no length limit in the API for any parameter.

> If I re-set the password then from Plone-LDAP / python-LDAP, the new 
> password is stored as 20bit binary and authentication works.

How do you set the password? You probably should get familiar with 
hashed passwords and how they are generated, stored and validated.

See: http://www.openldap.org/faq/data/cache/419.html

Ciao, Michael.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev

Reply via email to