Spring Security Java Config Multiple Group Search Base -
Spring Security Java Config Multiple Group Search Base -
i using spring security 3.2.5 java config , ldap authentication/authorization.
we have requirement search groups in 2 separate trees in ldap.
ou=groups
and
ou=groups,ou=webapps,ou=applications
i have searched , have been unable find info on topic.
this current code working fine:
@autowired public void configureglobal(userdetailscontextmapper userdetailscontextmapper, ldapcontextsource contextsource, authenticationmanagerbuilder builder) throws exception { builder .ldapauthentication() .userdetailscontextmapper(userdetailscontextmapper) .contextsource(contextsource) .usersearchfilter("cn={0}") .usersearchbase("ou=users") .groupsearchbase("ou=groups"); }
i want this:
builder .ldapauthentication() .userdetailscontextmapper(userdetailscontextmapper) .contextsource(contextsource) .usersearchfilter("cn={0}") .usersearchbase("ou=users") .groupsearchbase("ou=groups") .groupsearchbase("ou=groups,ou=webapps,ou=applications");
which understandably not work.
anyone have pointers on start?
spring-security spring-security-ldap
Comments
Post a Comment