From 42abe28cc1c515239178d91c9abc1e413167decf Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Tue, 12 May 2020 16:13:56 +0200 Subject: [PATCH] Fix for #1389 (import ldap users with whitespaces) --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index d8f3225c..9665c8dc 100644 --- a/cps/web.py +++ b/cps/web.py @@ -316,7 +316,7 @@ def import_ldap_users(): match = re.search("([a-zA-Z0-9-]+)=%s", config.config_ldap_user_object, re.IGNORECASE | re.UNICODE) if match: match_filter = match.group(1) - match = re.search(match_filter + "=([[\d\w-]+)", user, re.IGNORECASE | re.UNICODE) + match = re.search(match_filter + "=([\d\s\w-]+)", user, re.IGNORECASE | re.UNICODE) if match: user = match.group(1) else: