nicolasdiogo Posted June 23, 2011 Share Posted June 23, 2011 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 More sharing options...
mileidysg Posted June 23, 2011 Share Posted June 23, 2011 The follow solution is working for meMileidys 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 More sharing options...
nicolasdiogo Posted July 15, 2011 Author Share Posted July 15, 2011 thanks i tried this but it does not seem to work i get the following error messages complaining that it can not find the user on LDAP. could you possibly post the rest of this file - scrambling any sensitive data? thanks, 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