SEC-2163: Adding support for LdapAuthoritiesPopulator to Spring Active-Directory Authentication provider class #2390
Labels
in: ldap
An issue in spring-security-ldap
type: enhancement
A general enhancement
type: jira
An issue that was migrated from JIRA
Uh oh!
There was an error while loading. Please reload this page.
Greg Turnquist (Migrated from SEC-2163) said:
Adding support for LdapAuthoritiesPopulator to Spring Active-Directory Authentication provider class.
Attached:
Modified version of - org.springframework.security.ldap.authentication.ad.ActiveDirectoryLdapAuthenticationProvider.java
Based on the same original Spring source file, I have performed four code edits:
renamed method: loadUserAuthorities to loadUserAuthoritiesFromMemberOf (line 170)
added method: @OverRide loadUserAuthorities - for extended functionality (line 138)
added constructor: public ActiveDirectoryLdapAuthenticationProvider(String domain, String url, LdapAuthoritiesPopulator externalAuthoritiesPopulator) (line 110)
added member: private LdapAuthoritiesPopulator externalAuthoritiesPopulator (line 86)
and added one sentence comment at line 34 and author annotation at line 66
The following is standard code snippet using Spring Security 3.1.3 -
Usage without populator (present) -
The text was updated successfully, but these errors were encountered: