hingerl Posted May 3, 2007 Share Posted May 3, 2007 Hi, how can i make it, that only "ROLE*"-roles from ActiveDirectory get imported, when i log in JI? Code:12:20:04,451 WARN UserAuthorityServiceImpl,http-8080-Processor24:612 - Updated user: hingerl. Roles are now:ADMINISTRATORENREMOTEDESKTOPBENUTZERROLE_ADMINISTRATORGRUPPE-EDVLOKALE-ADMINISTRATORENROLE_USERROLE_FIBU thanksa.Hingerl Link to comment Share on other sites More sharing options...
swood Posted May 3, 2007 Share Posted May 3, 2007 You will have to extend UserAuthorityServiceImpl to make your own implementation and replace the userAuthorityService bean reference in the applicationContext. The alignInternalAndExternalUser method in there does this. we should make this more pluggable. ShermanJasperSoft Link to comment Share on other sites More sharing options...
hingerl Posted May 3, 2007 Author Share Posted May 3, 2007 Thanks, i think, i have solved it. applicationContext-security.xmlgroupSearchFilter (&(description=JASPER)(member={0}))Code:<bean id="defaultLdapAuthoritiesPopulator" class="org.acegisecurity.providers.ldap.populator.DefaultLdapAuthoritiesPopulator"> <constructor-arg> <ref local="initialDirContextFactory" /> </constructor-arg> <constructor-arg> <value></value> </constructor-arg> <property name="convertToUpperCase"> <value>true</value> </property> <property name="rolePrefix"> <value></value> </property> <property name="searchSubtree"> <value>true</value> </property> <property name="groupSearchFilter"> <value></value> </property> <property name="groupRoleAttribute"> <value>cn</value> </property> </bean> , so only AD-Groups with Description "JASPER" will get imported. Thanks. Post edited by: hingerl, at: 2007/05/03 16:10Post edited by: hingerl, at: 2007/05/03 16:12 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now