Projet

Général

Profil

Bug #10532

Fix unicode dn passed to LDAPObject.search() in get_ldap_attributes()

Ajouté par Benjamin Dauvergne il y a environ 8 ans. Mis à jour il y a plus de 7 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
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

Révision 714a17c0 (diff)
Ajouté par Benjamin Dauvergne il y a environ 8 ans

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.

Historique

#1

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
#2

Mis à jour par Benjamin Dauvergne il y a plus de 7 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF