branch-2.1: [Improvement](LDAP Auth)Enhance LDAP authentication with a configurable group filter (#43293)

Cherry-picked from #42038

Co-authored-by: nsivarajan <117266407+nsivarajan@users.noreply.github.com>
Co-authored-by: Sivarajan Narayanan <narayanan_sivarajan@apple.com>
This commit is contained in:
github-actions[bot]
2024-11-10 10:06:13 +08:00
committed by GitHub
parent fe1b8d44fd
commit 80fd76677e
3 changed files with 24 additions and 1 deletions

View File

@ -66,6 +66,12 @@ public class LdapConfig extends ConfigBase {
@ConfigBase.ConfField
public static String ldap_group_basedn = "";
/**
* Group lookup filter, the placeholder {login} will be replaced by the user supplied login.
*/
@ConfigBase.ConfField
public static String ldap_group_filter = "";
/**
* The user LDAP information cache time.
* After timeout, the user information will be retrieved from the LDAP service again.