summaryrefslogtreecommitdiffstats
path: root/docs/content/doc/administration
diff options
context:
space:
mode:
authorGary Moon <garymoon@users.noreply.github.com>2023-05-05 14:18:53 -0400
committerGitHub <noreply@github.com>2023-05-05 14:18:53 -0400
commitb8c19e7a11525da4174b6f80f87ff3e844d03d8a (patch)
treeb0cf7a236c68eae67ae7ecad6f7f548775926ffd /docs/content/doc/administration
parent09dd4b42c7afe3f474d900b9d5856af2929a12ea (diff)
downloadgitea-b8c19e7a11525da4174b6f80f87ff3e844d03d8a.tar.gz
gitea-b8c19e7a11525da4174b6f80f87ff3e844d03d8a.zip
Update LDAP filters to include both username and email address (#24547)
Since the login form label for user_name unconditionally displays `Username or Email Address` for the `user_name` field, bring matching LDAP filters to more prominence in the documentation/placeholders. Signed-off-by: Gary Moon <gary@garymoon.net>
Diffstat (limited to 'docs/content/doc/administration')
-rw-r--r--docs/content/doc/administration/command-line.en-us.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/doc/administration/command-line.en-us.md b/docs/content/doc/administration/command-line.en-us.md
index bf4578afec..37ba0c04da 100644
--- a/docs/content/doc/administration/command-line.en-us.md
+++ b/docs/content/doc/administration/command-line.en-us.md
@@ -225,7 +225,7 @@ Admin operations:
- `--synchronize-users`: Enable user synchronization.
- `--page-size value`: Search page size.
- Examples:
- - `gitea admin auth add-ldap --name ldap --security-protocol unencrypted --host mydomain.org --port 389 --user-search-base "ou=Users,dc=mydomain,dc=org" --user-filter "(&(objectClass=posixAccount)(uid=%s))" --email-attribute mail`
+ - `gitea admin auth add-ldap --name ldap --security-protocol unencrypted --host mydomain.org --port 389 --user-search-base "ou=Users,dc=mydomain,dc=org" --user-filter "(&(objectClass=posixAccount)(|(uid=%[1]s)(mail=%[1]s)))" --email-attribute mail`
- `update-ldap`: Update existing LDAP (via Bind DN) authentication source
- Options:
- `--id value`: ID of authentication source. Required.