From abedb134737ccdf87914eeddc9cfba6fb3a43223 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Fri, 25 Oct 2024 10:20:29 +0200 Subject: [PATCH] Improved ldap import user routine (fix for #3186) --- cps/admin.py | 2 +- cps/tasks/convert.py | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/cps/admin.py b/cps/admin.py index ff34e8b8..84106221 100644 --- a/cps/admin.py +++ b/cps/admin.py @@ -2081,7 +2081,7 @@ def _handle_edit_user(to_save, content, languages, translations, kobo_support): 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"=(.*?)($|(?