I´m triying to connect to MS AD with JR 5.5. I don´t get any error on catalina or jasperserver logs. This is my applicationContext-externalAuth-LDAP.xml file and the AD directory view:
<bean id="ldapAuthenticationManager" class="org.springframework.security.providers.ProviderManager">
<property name="providers">
<list>
<ref local="ldapAuthenticationProvider"/>
<ref bean="${bean.daoAuthenticationProvider}"/>
<!-- anonymousAuthenticationProvider only needed if filterInvocationInterceptor.alwaysReauthenticate is set to true
<ref bean="anonymousAuthenticationProvider"/>-->
</list>
</property>
</bean>
<bean id="ldapAuthenticationProvider" class="org.springframework.security.providers.ldap.LdapAuthenticationProvider">
<constructor-arg>
<bean class="org.springframework.security.providers.ldap.authenticator.BindAuthenticator">
<constructor-arg><ref local="ldapContextSource"/></constructor-arg>
<property name="userDnPatterns">
<list>
<value>uid={0},ou=Users</value>
</list>
</property>
</bean>
</constructor-arg>
<constructor-arg>
<bean class="org.springframework.security.ldap.populator.DefaultLdapAuthoritiesPopulator">
<constructor-arg index="0"><ref local="ldapContextSource"/></constructor-arg>
<constructor-arg index="1"><value>ou=MyGroups,dc=elver,dc=com</value></constructor-arg>
<property name="groupRoleAttribute"><value>cn</value></property>
<property name="groupSearchFilter"><value>(&(objectClass=group)(member={0}))</value></property>
<property name="searchSubtree"><value>true</value></property>
<property name="defaultRole" value="ROLE_LDAP"/>
<!-- Can setup additional external default roles here <property name="defaultRole" value="LDAP"/> -->
</bean>
</constructor-arg>
</bean>
<bean id="userSearch"
class="org.springframework.security.ldap.search.FilterBasedLdapUserSearch">
<constructor-arg index="0"><value></value></constructor-arg>
<constructor-arg index="1"><value>(&(objectClass=user)(sAMAaccountName={0})</value></constructor-arg>
<constructor-arg index="2"><ref local="ldapContextSource" /></constructor-arg>
<property name="searchSubtree"><value>true</value></property>
</bean>
<bean id="ldapContextSource" class="com.jaspersoft.jasperserver.api.security.externalAuth.ldap.JSLdapContextSource">
<constructor-arg value="ldap://10.10.30.1:389/dc=elver,dc=com"/>
<!-- manager user name and password (may not be needed) -->
<property name="userDn"><value>cn=Administrator,dc=elver,dc=com</value></property>
<property name="password"><value>password</value></property>
</bean>
Thanks in advance.