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 authored and Rob Crittenden committed 2009-06-10 11:51:15 -04:00
1 parent cda0f85ce5
commit 87bfd6b21a
1 file changed
+1 -1
+1 -1
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):