Skip to content

Allow custom strategy for ActiveDirectoryLdapAuthenticationProvider.searchForUser #9525

Closed
@mayras

Description

@mayras

Please provide customization of variable 'searchControls' inside ActiveDirectoryLdapAuthenticationProvider.searchForUser using protected method or some another method. Also if method parameter 'username' ends with '@Domain', then 'bindPrincipal' and 'username' are identical, but I need to pass short username inside searchFilter, please also make ability to customize parameters for 'searchFilter', for example:

protected Object[] customizeSearchFilterParams(DirContext context, String username, String bindPrincipal) throws NamingException {
    return new Object[] { bindPrincipal, username }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: ldapAn issue in spring-security-ldaptype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions