mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Adding items to the set needs to be lower case to prevent duplicates.
This function was assuming that the target list was all lower-case so the set could end up with duplicate values which would get kicked out by LDAP. 433680
This commit is contained in:
parent
5547ed320a
commit
a39f38f65b
@ -2089,4 +2089,4 @@ def ldap_search_escape(match):
|
||||
def uniq_list(x):
|
||||
"""Return a unique list, preserving order and ignoring case"""
|
||||
set = {}
|
||||
return [set.setdefault(e,e) for e in x if e.lower() not in set]
|
||||
return [set.setdefault(e.lower(),e.lower()) for e in x if e.lower() not in set]
|
||||
|
Loading…
Reference in New Issue
Block a user