From f785acb07d78ae791a24a39821a93afb81616934 Mon Sep 17 00:00:00 2001 From: William Goodspeed <86338960+goodspeed34@users.noreply.github.com> Date: Fri, 27 Jan 2023 20:02:57 +0800 Subject: [PATCH] Fix misleading LDAP filiter in default config The default filter provided in config files is invalid. This may mislead people. Confirm to issue #4620. --- defaults/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/defaults/config.js b/defaults/config.js index 2573c816..51bc090e 100644 --- a/defaults/config.js +++ b/defaults/config.js @@ -457,9 +457,9 @@ module.exports = { // - `rootPassword`: Password of The Lounge LDAP system user. rootPassword: "1234", - // - `filter`: it is set to `"(objectClass=person)(memberOf=ou=accounts,dc=example,dc=com)"` + // - `filter`: it is set to `"(&(objectClass=person)(memberOf=ou=accounts,dc=example,dc=com))"` // by default. - filter: "(objectClass=person)(memberOf=ou=accounts,dc=example,dc=com)", + filter: "(&(objectClass=person)(memberOf=ou=accounts,dc=example,dc=com))", // - `base`: LDAP search base (search only within this node). It is set // to `"dc=example,dc=com"` by default.