problem in cookie if dn contains a space

Bug #325512 reported by Sébastien CHAZALLET
6
Affects Status Importance Assigned to Milestone
repoze.who LDAP plugin
Invalid
Undecided
Gustavo Narea

Bug Description

Hello,

My dn contain a space : "uid=user,ou=people,dc=my company,dc=com"

An internal error occurs because cookie can not contain a space. (raised in Cookies.py)

In order to make repoze.who.plugins.ldap working with my configuration, I had to changed the returned value of authenticate function when authentication.

return dn > changed to > return 'uid=%s' % identity['login']

It works with return identity['login']

In my case, i'm sure that uid is unique, so i can return uid as well as dn.
I had not found any other solution to make cookies work with a dn containing a space.

Revision history for this message
Gustavo Narea (gnarea) wrote :

Bonjour, Sébastien.

This is a bug in repoze.who itself, whose report is at:
http://bugs.repoze.org/issue60

Cheers.

Changed in repoze.who.plugins.ldap:
assignee: nobody → gnarea
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.