From 5187f8838a0b4d72a2f76b0ad8801753050fa7ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Wed, 25 Mar 2020 15:33:04 +0100 Subject: [PATCH] Add LDAP filter for permission --- conf/homeserver.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/conf/homeserver.yaml b/conf/homeserver.yaml index 67b50c7..57ac062 100644 --- a/conf/homeserver.yaml +++ b/conf/homeserver.yaml @@ -1342,6 +1342,7 @@ password_providers: - module: "ldap_auth_provider.LdapAuthProvider" config: enabled: true + mode: "search" uri: "ldap://localhost" start_tls: false base: "ou=users,dc=yunohost,dc=org" @@ -1349,9 +1350,9 @@ password_providers: uid: "uid" mail: "mail" name: "givenName" -# #bind_dn: +# #bind_dn: # TODO Add authentication to have the filter working # #bind_password: -# #filter: "(objectClass=posixAccount)" + filter: "(&(objectClass=posixAccount)(permission=cn=__APP__.main,ou=permission,dc=yunohost,dc=org))"