From ea84f91d3bbb99879179a26b48fd9af6e1f828b3 Mon Sep 17 00:00:00 2001 From: spaced Date: Mon, 18 Mar 2024 18:09:56 -0700 Subject: [PATCH 1/3] Fix to allow LDAP users to sign in --- conf/config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/config.php b/conf/config.php index e0ba663..323fb4a 100644 --- a/conf/config.php +++ b/conf/config.php @@ -17,10 +17,10 @@ return array( 'ldap' => array( 'enabled' => true, 'schema' => 'ldap', - 'host' => 'ldap://127.0.0.1', + 'host' => '127.0.0.1', 'port' => 389, 'base_domain' => 'dc=yunohost,dc=org', - 'search_filter' => '(&(|(objectclass=posixAccount))(uid={{username}})(permission=cn=__APP__.main,ou=permission,dc=yunohost,dc=org))', + 'search_filter' => '(&(|(objectclass=posixAccount))(uid=????)(permission=cn=__APP__.main,ou=permission,dc=yunohost,dc=org))', 'user_domain' => 'ou=Users', 'rdn_attribute' => 'uid=', ), From 1478c4815c46c01996aeb9c13f9e28deb3156011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 12 May 2024 18:26:37 +0200 Subject: [PATCH 2/3] Update nginx.conf --- conf/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index e67414b..305e968 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -8,7 +8,7 @@ location __PATH__/ { client_max_body_size 1G; - try_files $uri $uri/ __PATH__/index.php + try_files $uri $uri/ __PATH__/index.php; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; From 4627620b222de59840cd484b96658e24f9b968ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 12 May 2024 18:27:20 +0200 Subject: [PATCH 3/3] fix --- conf/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/config.php b/conf/config.php index aaa878e..0370ebc 100644 --- a/conf/config.php +++ b/conf/config.php @@ -17,7 +17,7 @@ return array( 'ldap' => array( 'enabled' => true, 'schema' => 'ldap', - 'host' => 'ldap://127.0.0.1', + 'host' => '127.0.0.1', 'port' => 389, 'base_domain' => 'dc=yunohost,dc=org', 'search_filter' => '(&(|(objectclass=posixAccount))(uid={{username}})(permission=cn=__APP__.main,ou=permission,dc=yunohost,dc=org))',