1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-24 02:27:22 +00:00

Fix #2029 (Import LDAP User with "." in the name)

This commit is contained in:
Ozzie Isaacs 2021-07-30 20:45:33 +02:00
parent a32b36bf81
commit 16633ef1d3

View File

@ -1800,7 +1800,7 @@ def import_ldap_users():
def extract_user_data_from_field(user, field):
match = re.search(field + r"=([\d\s\w-]+)", user, re.IGNORECASE | re.UNICODE)
match = re.search(field + r"=([\.\d\s\w-]+)", user, re.IGNORECASE | re.UNICODE)
if match:
return match.group(1)
else: