Fix bug in ldap2.normalize_dn.

DN was always returned as lower-case, sometimes resulting in 2 RDN values with different cases when creating entries.
This commit is contained in:
Pavel Zuna
2009-05-27 15:54:00 +02:00
committed by Rob Crittenden
parent cda0f85ce5
commit 87bfd6b21a

View File

@@ -238,7 +238,7 @@ class ldap2(CrudBackend, Encoder):
Note: You don't have to normalize DN's before passing them to
ldap2 methods. It's done internally for you.
"""
rdns = _ldap.dn.explode_dn(dn.lower())
rdns = _ldap.dn.explode_dn(dn)
if rdns:
dn = ','.join(rdns)
if not dn.endswith(self.api.env.basedn):