diff --git a/config.template.yml b/config.template.yml index 39ca3887d..55d5b2bb7 100644 --- a/config.template.yml +++ b/config.template.yml @@ -104,7 +104,7 @@ authentication_backend: # - OpenLDAP: (&({username_attribute}={input})(objectClass=person))' or '(&({username_attribute}={input})(objectClass=inetOrgPerson)) # # To allow sign in both with username and email, one can use a filter like - # (&(|({username_attribute}={input})({mail_attribute={input}))(objectClass=person)) + # (&(|({username_attribute}={input})({mail_attribute}={input}))(objectClass=person)) users_filter: (&({username_attribute}={input})(objectClass=person)) # An additional dn to define the scope of groups diff --git a/docs/configuration/authentication/ldap.md b/docs/configuration/authentication/ldap.md index eb6866c6e..21bcc0b7b 100644 --- a/docs/configuration/authentication/ldap.md +++ b/docs/configuration/authentication/ldap.md @@ -48,7 +48,7 @@ authentication_backend: # - OpenLDAP: (&({username_attribute}={input})(objectClass=person))' or '(&({username_attribute}={input})(objectClass=inetOrgPerson)) # # To allow sign in both with username and email, one can use a filter like - # (&(|({username_attribute}={input})({mail_attribute={input}))(objectClass=person)) + # (&(|({username_attribute}={input})({mail_attribute}={input}))(objectClass=person)) users_filter: (&({username_attribute}={input})(objectClass=person)) # An additional dn to define the scope of groups