Jump to content
We've recently updated our Privacy Statement, available here ×

Roles are now: (activeDirectory)


hingerl

Recommended Posts

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:
ADMINISTRATOREN
REMOTEDESKTOPBENUTZER
ROLE_ADMINISTRATOR
GRUPPE-EDV
LOKALE-ADMINISTRATOREN
ROLE_USER
ROLE_FIBU

 

thanks

a.Hingerl

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.

 

 

Sherman

JasperSoft

Link to comment
Share on other sites

Thanks,

 

i think, i have solved it.

 

 

applicationContext-security.xml

groupSearchFilter (&(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:10

Post edited by: hingerl, at: 2007/05/03 16:12

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...