mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 03:18:24 +00:00 
			
		
		
		
	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>
This commit is contained in:
		| @@ -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. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user