Add Flag to enable searching of LDAP groups on subtrees #8393
Labels
in: config
An issue in spring-security-config
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
Summary
Is not possible to get authorities searching LDAP groups on subtree of the provided groupSearchBase. IMHO this is a common use case.
Actual Behavior
LdapAuthenticationProviderConfigurer
doesn't provide any way to configureDefaultLdapAuthoritiesPopulator.setSearchSubtree
.After construction, no
postProcess()
is applied toDefaultLdapAuthoritiesPopulator
, so it cannot be postProcessed.The only way I found is to define a custom
LdapAuthoritiesPopulator
just to set this flag. ContextSource is required by constructor, so have to be defined upfront, making configurer almost useless in this use caseExpected Behavior
A method
groupSearchSubtree(boolean)
should be available in order to configure the flag. Also, performing postProcessing could be useful for further customizations.Configuration
Version
Tested on Spring Security 5.2.1. Seems unchanged on master branch
Sample
Provided inline
The text was updated successfully, but these errors were encountered: