From 5d25dfacc7fa198f1ae667e8c9bd1d048fb260d9 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 24 Aug 2019 19:20:31 +0200 Subject: [PATCH] zzz moar conf fixes ... --- conf/local.py.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/local.py.j2 b/conf/local.py.j2 index 125caa7..4a2777b 100644 --- a/conf/local.py.j2 +++ b/conf/local.py.j2 @@ -68,7 +68,7 @@ AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.ModelBackend', ) AUTH_LDAP_SERVER_URI = "ldap://localhost:389" -AUTH_LDAP_USER_SEARCH = LDAPSearch("uid=YNH_APP_ARG_ADMIN,ou=users,dc=yunohost,dc=org", ldap.SCOPE_SUBTREE, "(uid=%(user)s)") +AUTH_LDAP_USER_SEARCH = LDAPSearch("uid={{ admin }},ou=users,dc=yunohost,dc=org", ldap.SCOPE_SUBTREE, "(uid=%(user)s)") AUTH_LDAP_USER_ATTR_MAP = { "username": "uid", "first_name": "givenName",