Skip to content

SEC-3096: Is it possible to make class ActiveDirectoryLdapAuthenticationProvider customizable? #3303

Open
@spring-projects-issues

Description

@spring-projects-issues

Arnošt Havelka (Migrated from SEC-3096) said:

Well we are using Active Directory authentication. I'm not sure what's the reason, but our AD has not sAMAccountName as "[email protected]", but only as "user".

Our current solution is to copy&paste class ActiveDirectoryLdapAuthenticationProvider and modify method searchForUser to call SpringSecurityLdapTemplate.searchForSingleEntryInternal(...) with username instead of bindPrincipal. This solution works, but it's really nasty :-).

Since this class is final and not Spring bean than I have no option (not found any yet) to customize it (to suite it to our AD).

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: ldapAn issue in spring-security-ldaptype: bugA general bugtype: jiraAn issue that was migrated from JIRA

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions