Plone LDAP doesn't like crypt-passwords with 41bit?

7 Messages Forum Options Options
Permalink
BenSo
Plone LDAP doesn't like crypt-passwords with 41bit?
Reply Threaded More
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Hi altogether,

 

I have a little problem with the latest Plone-version (also latest PloneLDAP version) and our LDAP server.

Our passwords are encrypted with “crypt” and stored as 41bit binary values. The problem is that Plone (LDAP) doesn’t seem to like 41bit passwords but only 20bit. But our server stores the LDAP passwords as 41bit values by standard.

So when I try to authenticate with a user in Plone, Plone tells me that the password is wrong, though I can authenticate with the same user and password when doing an authenticated LDAP search on the console.

But when I then enter the ZMI and go into the LDAP settings and re-set the password for this user, Plone LDAP stores the password as 20bit binary and the authentication works.

 

How can I get Plone LDAP to “eat” 41bit password-values?

 

 

Thanks in advance, B.

 


-------------------------------------------------------------------------
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=/
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users
Wichert Akkerman
Re: Plone LDAP doesn't like crypt-passwords with 41bit?
Reply Threaded More
Print post
Permalink
Previously sommerfeld@... wrote:

> Hi altogether,
>
>  
>
> I have a little problem with the latest Plone-version (also latest PloneLDAP
> version) and our LDAP server.
>
> Our passwords are encrypted with "crypt" and stored as 41bit binary values.
> The problem is that Plone (LDAP) doesn't seem to like 41bit passwords but
> only 20bit. But our server stores the LDAP passwords as 41bit values by
> standard.

Plone does not authenticate LDAP users itself: it performs a LDAP simple
bind to the LDAP server to check credentials. This happens completely
inside the OpenLDAP library code used by the python-ldap module. I
suggest that you ask this on an OpenLDAP list.

Wichert.

--
Wichert Akkerman <wichert@...>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.

-------------------------------------------------------------------------
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=/
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users
BenSo
Re: Plone LDAP doesn't like crypt-passwords with 41bit?
Reply Threaded More
Print post
Permalink

> -----Ursprüngliche Nachricht-----
> Von: Wichert Akkerman [mailto:wichert@...] Im Auftrag von
> Wichert Akkerman
> Gesendet: Dienstag, 22. Juli 2008 11:03
> An: sommerfeld@...
> Cc: plone-users@...
> Betreff: Re: [Plone-Users] Plone LDAP doesn't like crypt-passwords with
> 41bit?
>
> Previously sommerfeld@... wrote:
> > Hi altogether,
> >
> >
> >
> > I have a little problem with the latest Plone-version (also latest
> PloneLDAP
> > version) and our LDAP server.
> >
> > Our passwords are encrypted with "crypt" and stored as 41bit binary
> values.
> > The problem is that Plone (LDAP) doesn't seem to like 41bit passwords
> but
> > only 20bit. But our server stores the LDAP passwords as 41bit values by
> > standard.
>
> Plone does not authenticate LDAP users itself: it performs a LDAP simple
> bind to the LDAP server to check credentials. This happens completely
> inside the OpenLDAP library code used by the python-ldap module. I
> suggest that you ask this on an OpenLDAP list.
>
> Wichert.

Hi Wichert,

I don't completely understand. I mean, authentication through a normal
LDAP-search from console works fine. So I thought the installed
LDAP-packages / -libraries are OK and the "problem" lies within Plone LDAP /
python-LDAP?`

The only thing I can imagine is that I have to upgrade the packages
(python-ldap and ldaplib aren't the latest versions in debian etch), but
that's a harder task than I thought.






-------------------------------------------------------------------------
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=/
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users
Wichert Akkerman
Re: Plone LDAP doesn't like crypt-passwords with 41bit?
Reply Threaded More
Print post
Permalink
Previously sommerfeld@... wrote:

>
> > -----Ursprüngliche Nachricht-----
> > Von: Wichert Akkerman [mailto:wichert@...] Im Auftrag von
> > Wichert Akkerman
> > Gesendet: Dienstag, 22. Juli 2008 11:03
> > An: sommerfeld@...
> > Cc: plone-users@...
> > Betreff: Re: [Plone-Users] Plone LDAP doesn't like crypt-passwords with
> > 41bit?
> >
> > Previously sommerfeld@... wrote:
> > > Hi altogether,
> > >
> > >
> > >
> > > I have a little problem with the latest Plone-version (also latest
> > PloneLDAP
> > > version) and our LDAP server.
> > >
> > > Our passwords are encrypted with "crypt" and stored as 41bit binary
> > values.
> > > The problem is that Plone (LDAP) doesn't seem to like 41bit passwords
> > but
> > > only 20bit. But our server stores the LDAP passwords as 41bit values by
> > > standard.
> >
> > Plone does not authenticate LDAP users itself: it performs a LDAP simple
> > bind to the LDAP server to check credentials. This happens completely
> > inside the OpenLDAP library code used by the python-ldap module. I
> > suggest that you ask this on an OpenLDAP list.
> >
> > Wichert.
>
> Hi Wichert,
>
> I don't completely understand. I mean, authentication through a normal
> LDAP-search from console works fine. So I thought the installed
> LDAP-packages / -libraries are OK and the "problem" lies within Plone LDAP /
> python-LDAP?`

Make sure you are using a simple bind (-x) when using the ldapsearch
tools; PloneLDAP (or rather the underlying LDAPUserFolder) does the
equivalent of that internally.

Plone just calls the simple_bind_s method from python-ldap which should
work fine. If that does not work there is nothing Plone can do about
that. You'll need to check if either python-ldap or the OpenLDAP
libraries linked with python-ldap are the problem.

Wichert.

--
Wichert Akkerman <wichert@...>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.

-------------------------------------------------------------------------
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=/
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users
BenSo
Re: Plone LDAP doesn't like crypt-passwords with 41bit?
Reply Threaded More
Print post
Permalink
> >
> > Hi Wichert,
> >
> > I don't completely understand. I mean, authentication through a normal
> > LDAP-search from console works fine. So I thought the installed
> > LDAP-packages / -libraries are OK and the "problem" lies within Plone
> LDAP /
> > python-LDAP?`
>
> Make sure you are using a simple bind (-x) when using the ldapsearch
> tools; PloneLDAP (or rather the underlying LDAPUserFolder) does the
> equivalent of that internally.
>
> Plone just calls the simple_bind_s method from python-ldap which should
> work fine. If that does not work there is nothing Plone can do about
> that. You'll need to check if either python-ldap or the OpenLDAP
> libraries linked with python-ldap are the problem.
>
> Wichert.


We are using a simple bind as far as I can tell from the command:

/usr/bin/ldapsearch -v -x -p 389 -h localhost -D "uid=xxx,ou=people,dc=xxx"
-W -b 'dc=xxx' 'uid=xxx'

This works without problems to authenticate the users. But authenticating
the same users with same password in Plone fails - only when we re-set the
password through ZMI / Plone-LDAP it works in Plone (and then the passwords
are 20 bit in LDAP)



-------------------------------------------------------------------------
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=/
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users
Wichert Akkerman
Re: Plone LDAP doesn't like crypt-passwords with 41bit?
Reply Threaded More
Print post
Permalink
Previously sommerfeld@... wrote:

> > >
> > > Hi Wichert,
> > >
> > > I don't completely understand. I mean, authentication through a normal
> > > LDAP-search from console works fine. So I thought the installed
> > > LDAP-packages / -libraries are OK and the "problem" lies within Plone
> > LDAP /
> > > python-LDAP?`
> >
> > Make sure you are using a simple bind (-x) when using the ldapsearch
> > tools; PloneLDAP (or rather the underlying LDAPUserFolder) does the
> > equivalent of that internally.
> >
> > Plone just calls the simple_bind_s method from python-ldap which should
> > work fine. If that does not work there is nothing Plone can do about
> > that. You'll need to check if either python-ldap or the OpenLDAP
> > libraries linked with python-ldap are the problem.
> >
> > Wichert.
>
>
> We are using a simple bind as far as I can tell from the command:
>
> /usr/bin/ldapsearch -v -x -p 389 -h localhost -D "uid=xxx,ou=people,dc=xxx"
> -W -b 'dc=xxx' 'uid=xxx'
>
> This works without problems to authenticate the users. But authenticating
> the same users with same password in Plone fails - only when we re-set the
> password through ZMI / Plone-LDAP it works in Plone (and then the passwords
> are 20 bit in LDAP)

That's a bug in python-ldap then.

Wichert.

--
Wichert Akkerman <wichert@...>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.

-------------------------------------------------------------------------
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=/
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users
BenSo
Re: Plone LDAP doesn't like crypt-passwords with 41bit?
Reply Threaded More
Print post
Permalink

> >
> >
> > We are using a simple bind as far as I can tell from the command:
> >
> > /usr/bin/ldapsearch -v -x -p 389 -h localhost -D
> "uid=xxx,ou=people,dc=xxx"
> > -W -b 'dc=xxx' 'uid=xxx'
> >
> > This works without problems to authenticate the users. But
> authenticating
> > the same users with same password in Plone fails - only when we re-set
> the
> > password through ZMI / Plone-LDAP it works in Plone (and then the
> passwords
> > are 20 bit in LDAP)
>
> That's a bug in python-ldap then.
>
> Wichert.


Yep, was a bug in Python-LDAP. I finally managed to re-compile the latest
OpenLDAP libraries and Python-LDAP package from source and now
authentication works.
Thanks.



-------------------------------------------------------------------------
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=/
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users