java - Spring LDAP not getting all Authorities -


so i'm having issues getting appropriate authorities ldap spring. able of authorities, not of them.

my ldap structure looks this:

enter image description here

i'm using: spring 4, spring security 4, spring ldap 2

my application-context-security.xml contains:

<ldap-server url="${ldap.server.url}" />  <beans:bean id="gridinetorgusermapper" class="com.package.of.company.commons.gridinetorgpersoncontextmapper" />  <beans:bean id="localsecurityhandler" class="com.package.of.stuff.service.impl.securityhandler">     <beans:constructor-arg ref="userservice" /> </beans:bean>  <authentication-manager id="authenticationmanagercas">     <authentication-provider ref="casauthenticationprovider" /> </authentication-manager>  <beans:bean id="casauthenticationprovider" class="org.springframework.security.cas.authentication.casauthenticationprovider">     <beans:property name="userdetailsservice" ref="ldapuserservice"/>      <beans:property name="serviceproperties" ref="serviceproperties" />     <beans:property name="ticketvalidator">         <beans:bean class="org.jasig.cas.client.validation.cas20serviceticketvalidator">             <beans:constructor-arg index="0" value="${security.cas.app.url}" />         </beans:bean>     </beans:property>     <beans:property name="key" value="knowledge"/> </beans:bean>  <ldap-user-service       id="ldapuserservice"      user-search-base="ou=people"      user-search-filter="(uid={0})"      group-search-base="ou=groups"     group-role-attribute="cn"     group-search-filter="(objectclass=*)"     role-prefix="none"      user-context-mapper-ref="gridinetorgusermapper"/>  <beans:bean id="serviceproperties" class="org.springframework.security.cas.serviceproperties">     <beans:property name="service" value="${security.cas.postback.service.name}"/>     <beans:property name="sendrenew" value="false"/> </beans:bean>  <beans:bean id="casfilter" class="org.springframework.security.cas.web.casauthenticationfilter">     <beans:property name="authenticationmanager" ref="authenticationmanagercas"/>     <beans:property name="authenticationsuccesshandler" ref="localsecurityhandler">     </beans:property> </beans:bean>  <beans:bean id="casentrypoint" class="org.springframework.security.cas.web.casauthenticationentrypoint">     <beans:property name="loginurl" value="${security.cas.login.url}"/>     <beans:property name="serviceproperties" ref="serviceproperties"/> </beans:bean> 

i'm able out launcheradmin , launcheruser, not of knowledge authorities. i've been stuck on past 3 days. appreciated.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -