Jump to content

Authentication on JasperServer agaomst LDAP - how can i filter users of AD to have specific group


nicolasdiogo

Recommended Posts

hi folks,

 

i would like to find out how i can filter the LDAP authentication to enforce users to be part of a specific group to be able to login into JasperServer?

we have setup LDAP authentication against LDAP but any user is able to login - and we are now tryign to limit them.

 

many thanks,


Nicolas

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

The follow solution is working for me

Mileidys Gonzalez Prieto

 

Code:
<bean id="userSearch"  	  class="org.springframework.security.ldap.search.FilterBasedLdapUserSearch">      <constructor-arg index="0" value=""/>   <constructor-arg index="1" value="(&(sAMAccountName={0})     (|       (memberOf=CN=Group1,OU=Groups,OU=Site,DC=mydc,DC=org)	   (memberOf=CN=Group2,OU=Groups,OU=Site,DC=mydc,DC=org)	   (memberOf=CN=Group3,OU=Groups,OU=Site,DC=mydc,DC=org)      ))" />   <constructor-arg index="2" ref="contextSource" />						</bean>
Link to comment
Share on other sites

  • 4 weeks later...

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...