Bug #10532
Fix unicode dn passed to LDAPObject.search() in get_ldap_attributes()
Début:
01 avril 2016
Echéance:
% réalisé:
100%
Temps estimé:
Patch proposed:
Non
Planning:
Description
LDAPUser.dn is now stored in the session between requests; session are stored as JSON and when decoded JSON only return unicode strings, so we must encode the dn as utf-8 in the LDAPUser.dn accessor.
Révisions associées
Historique
Mis à jour par Benjamin Dauvergne il y a environ 8 ans
- Statut changé de Nouveau à Résolu (à déployer)
- % réalisé changé de 0 à 100
Appliqué par commit authentic2|714a17c05aaad21ab4c832d14db691e278b7648d.
Mis à jour par Benjamin Dauvergne il y a plus de 7 ans
- Statut changé de Résolu (à déployer) à Fermé
fix storage of LDAPUser.dn in sessions (fixes #10532)
The Django session store it as JSON and convert it to unicode on session
unserialization. It must be encoded to utf-8 before being used with python-ldap
API.