ldap: make user_attributes.from_ldap case insensitive (#50528)
This commit is contained in:
parent
ade4c6399f
commit
62654a29a7
|
@ -713,6 +713,7 @@ class LDAPBackend(object):
|
|||
to_user = mapping.get('to_user')
|
||||
if not from_ldap or not to_user:
|
||||
continue
|
||||
from_ldap = from_ldap.lower()
|
||||
if not attributes.get(from_ldap):
|
||||
user_attributes[to_user] = ''
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue