-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ActiveDirectoryLdapAuthenticationProvider does not support different AuthoritiesPopulator #4490
Comments
Six years later this is still an issue. Can we get some triaging as a start? |
@Haarolean, I think this would be a nice feature to add. Would you like to contribute a PR? |
@jzheaux thanks for triaging the issue. Sure, please assign :) |
What is the status on this? This would be extremely useful. |
Raised a PR #14539 |
Thanks, @Haarolean! Closing in favor of #14539 |
@jzheaux just noticed I've made |
Summary
The ActiveDirectoryLdapAuthenticationProvider is final and does not use an AuthoritiesPopulator and LdapAuthenticator.
I found on stackoverflow that other people also struggled with this:
https://stackoverflow.com/questions/16113115/how-do-i-use-a-custom-authorities-populator-with-spring-security-and-the-actived
Actual Behavior
I cannot override the loadUserAuthorities method in the ActiveDirectoryLdapAuthenticationProvider.
Expected Behavior
I expected the ActiveDirectoryAuthenticationProvider to work in the same way as the LdapAuthenticationProvider, with a separate LdapAuthenticator and AuthoritiesPopulator that I can override if needed.
Version
The latest version on master still has a seperate loadUserAuthorities method instead of using an AuthoritiesPopulator: https://github.com/spring-projects/spring-security/blob/01579be7d42a0f7c0e75b35a50e46165c14f9c7f/ldap/src/main/java/org/springframework/security/ldap/authentication/ad/ActiveDirectoryLdapAuthenticationProvider.java
The text was updated successfully, but these errors were encountered: