From 8dc2238ba218e667500972ccc9abb7db1a7d0a6d Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 7 Aug 2025 17:52:34 +0200 Subject: [PATCH] Optimized Funkwhale bug --- roles/web-app-funkwhale/templates/env.j2 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/roles/web-app-funkwhale/templates/env.j2 b/roles/web-app-funkwhale/templates/env.j2 index 61915291..f7f50376 100644 --- a/roles/web-app-funkwhale/templates/env.j2 +++ b/roles/web-app-funkwhale/templates/env.j2 @@ -111,11 +111,10 @@ LDAP_ENABLED = True LDAP_SERVER_URI = "{{ ldap.server.uri }}" LDAP_BIND_DN = "{{ ldap.dn.administrator.data }}" LDAP_BIND_PASSWORD = "{{ ldap.bind_credential }}" -#LDAP_SEARCH_FILTER = "{{ ldap.filters.users.login | replace('%' ~ ldap.user.attributes.id, '{0}') }}" +LDAP_SEARCH_FILTER = "{{ ldap.filters.users.login | replace('%' ~ ldap.user.attributes.id, '{0}') }}" LDAP_START_TLS = False LDAP_ROOT_DN = "{{ldap.dn.root}}" -#LDAP_USER_ATTR_MAP = "first_name:{{ ldap.user.attributes.firstname }}, last_name:{{ ldap.user.attributes.surname }}, username:{{ ldap.user.attributes.id }}, email:{{ ldap.user.attributes.mail }}" - +LDAP_USER_ATTR_MAP='{"username":"uid","first_name":"givenName","last_name":"sn","email":"mail"}' {% endif %} FUNKWHALE_FRONTEND_PATH=/srv/funkwhale/front/dist