Support custom GrantedAuthorities strategy for ActiveDirectoryLdapAuthenticationProvider #4390
Labels
in: ldap
An issue in spring-security-ldap
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
Summary
In connection with using ActiveDirectoryLdapAuthenticationProvider it is only possible to extract memberOf in the loadUserAuthorities. In our case we would have liked to extract some other attributes in particular the department and username. However it has not been possible to extend the ActiveDirectoryLdapAuthenticationProvider because the class it is final as it is now. I tried to see if there was some other good alternatives but nothing came up, so what I ended up with was copying the class and modifying it.
But rather than extending maybe it would be beneficial to let it be possible to provide a list of extractors to an instance of an AuthenticationProvider and then when loadAuthorities is invoked all extractors are invoked and the result of all the invocation is a merged list of all GrantedAuthorities.
Version
4.2.2.RELEASE
The text was updated successfully, but these errors were encountered: