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

Jasperserver 3.5 Ldap activation


neaguradu

Recommended Posts

Please help me out with the activation of the ldap authentication and how i brig users from the windows activedirectory

I 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 authentication

This 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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

 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

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