mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
committed by
Rob Crittenden
parent
cda0f85ce5
commit
87bfd6b21a
@@ -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):
|
||||
|
Reference in New Issue
Block a user