ldap: make user_attributes.from_ldap case insensitive (#50528)

This commit is contained in:
Benjamin Renard 2021-01-25 18:08:46 +01:00 committed by Valentin Deniaud
parent ade4c6399f
commit 62654a29a7
1 changed files with 1 additions and 0 deletions

View File

@ -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: