From 13a6779c9600d5b1f92a61a010f32e2889fcacc9 Mon Sep 17 00:00:00 2001
From: Tom Teichler <tom.teichler@teckids.org>
Date: Tue, 5 May 2020 19:12:53 +0200
Subject: [PATCH] Fix name of preference. Closes #17

---
 aleksis/apps/ldap/util/ldap_sync.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aleksis/apps/ldap/util/ldap_sync.py b/aleksis/apps/ldap/util/ldap_sync.py
index a2737ba..3366dcb 100644
--- a/aleksis/apps/ldap/util/ldap_sync.py
+++ b/aleksis/apps/ldap/util/ldap_sync.py
@@ -226,7 +226,7 @@ def ldap_sync_from_user(user, dn, attrs):
 
             # Apply regex replace from config
             patterns = get_site_preferences()[setting_name + "_re"]
-            templates = get_site_preferences()[setting_name + "_request"]
+            templates = get_site_preferences()[setting_name + "_replace"]
             value = apply_templates(value, patterns, templates)
 
             # Opportunistically convert LDAP string value to Python object
-- 
GitLab