neaguradu Posted December 11, 2009 Share Posted December 11, 2009 Please help me out with the activation of the ldap authentication and how i brig users from the windows activedirectoryI have made the folowing settings in the applicationContext-security.xml:<bean id="initialDirContextFactory"class="org.acegisecurity.ldap.DefaultInitialDirContextFactory"><constructor-arg value="ldap://server.ro:389/dc=server,dc=domain/"/><property name="managerDn"><value>cn=radu.neagu,dc=romtelecom,dc=ro</value></property><property name="managerPassword"><value>Password<value></property> </bean> <!--For LDAP authenticationThis bean is not used by default--> <bean id="userSearch"class="org.acegisecurity.ldap.search.FilterBasedLdapUserSearch"><constructor-arg index="0"><value>ou=BaseOU,dc=com</value></constructor-arg><constructor-arg index="1"><value>(uid={0})</value></constructor-arg><constructor-arg index="2"><ref local="initialDirContextFactory" /></constructor-arg><property name="searchSubtree"><value>true</value></property></bean> <!--For LDAP authentication--> <bean id="ldapAuthenticationProvider"class="org.acegisecurity.providers.ldap.LdapAuthenticationProvider"><constructor-arg><bean class="org.acegisecurity.providers.ldap.authenticator.BindAuthenticator"><constructor-arg><ref local="initialDirContextFactory"/></constructor-arg><!--property name="userDnPatterns"><list><value>uid={0}</value></list></property--><property name="userSearch"><ref bean="userSearch"/></property></bean></constructor-arg><constructor-arg><bean class="org.acegisecurity.providers.ldap.populator.DefaultLdapAuthoritiesPopulator"><constructor-arg index="0"><ref local="initialDirContextFactory"/></constructor-arg><constructor-arg index="1"><value></value></constructor-arg><property name="groupRoleAttribute"><value>cn</value></property><property name="groupSearchFilter"><value>(&(uniqueMember={0})(objectclass=groupofuniquenames))</value></property><property name="searchSubtree"><value>true</value></property></bean></constructor-arg></bean> Link to comment Share on other sites More sharing options...
jogrey Posted December 17, 2009 Share Posted December 17, 2009 I am also facing troubles configuring LDAP even with the JasperServer-Ext-Auth-Cookbook document and if i only want to check the password of the local user to the AD.Did you think to add : <ref local="ldapAuthenticationProvider"/> in <bean id="authenticationManager"class="org.acegisecurity.providers.ProviderManager"> ? Could be have a fully fucntional exemple of such an xml ? Thank you :) Link to comment Share on other sites More sharing options...
swood Posted December 20, 2009 Share Posted December 20, 2009 You both say you are having problems, but you do not say what the problems are. Are you getting exceptions? Or incorrect behavior? ShermanJaspersoft 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