From 16633ef1d3be02723f568c3383f936336eb6afdc Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Fri, 30 Jul 2021 20:45:33 +0200 Subject: [PATCH] Fix #2029 (Import LDAP User with "." in the name) --- cps/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/admin.py b/cps/admin.py index 2602dffb..b02a5431 100644 --- a/cps/admin.py +++ b/cps/admin.py @@ -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: