friscoshopping Posted March 22, 2016 Share Posted March 22, 2016 Hi,I have installed jasperreports server 6.2.0 and configured with LDAP. I could login with jasperadmin but not with the network credentials.Could you please suggest what is wrong with the below LDAP configuration? I do not see any errors in jasperserver.log <bean id="ldapContextSource" class="com.jaspersoft.jasperserver.api.security.externalAuth.ldap.JSLdapContextSource"> <constructor-arg value="ldap://ldap.mycompany.me:389/ou=mycompany,dc=mycompany,dc=me"/> <!-- manager user name and password (may not be needed) --> <property name="userDn" value="cn=adminUser,ou=Services,ou=Users,ou=mycompany,dc=mycompany,dc=me"/> <property name="password" value="adminPwd"/> </bean> <bean id="ldapAuthenticationProvider" class="com.jaspersoft.jasperserver.api.security.externalAuth.wrappers.spring.ldap.JSLdapAuthenticationProvider"> <constructor-arg> <bean class="com.jaspersoft.jasperserver.api.security.externalAuth.wrappers.spring.ldap.JSBindAuthenticator"> <constructor-arg><ref local="ldapContextSource"/></constructor-arg> <property name="userDnPatterns"> <list> <value>ou=users</value> </list> </property> </bean> </constructor-arg> <constructor-arg> <bean class="com.jaspersoft.jasperserver.api.security.externalAuth.wrappers.spring.ldap.JSDefaultLdapAuthoritiesPopulator"> <constructor-arg index="0"><ref local="ldapContextSource"/></constructor-arg> <constructor-arg index="1"><value></value></constructor-arg> <property name="groupRoleAttribute" value="title"/> <property name="groupSearchFilter" value="(uid={1})"/> <property name="searchSubtree" value="true"/> <!-- Can setup additional external default roles here <property name="defaultRole" value="LDAP"/> --> </bean> </constructor-arg> </bean>..insert your code here..[/code] Link to comment Share on other sites More sharing options...
friscoshopping Posted March 23, 2016 Author Share Posted March 23, 2016 I got it working. 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