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

metisathyanarayana

Members
  • Posts

    4
  • Joined

  • Last visited

metisathyanarayana's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hey , I changed , "applicationContext-externalAuth-LDAP-mt.xml" ,also please find atached ldiff file
  2. Hi Yurie, Please find my changes , but still unable to connect external users to the jasper. Things changed 1. <bean id="ldapContextSource" class="com.jaspersoft.jasperserver.api.security.externalAuth.ldap.JSLdapContextSource"> <constructor-arg value="ldap://localhost:389/dc=maxcrc,dc=com"/> <!-- manager user name and password (may not be needed) --> <property name="userDn" value="cn=Manager,dc=maxcrc,dc=com"/> <property name="password" value="secret"/> </bean> 2. <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="userSearch" ref="userSearch"/> <property name="userDnPatterns"> <list> <value>uid={0},ou=People</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></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> 3. <bean id="userSearch" class="org.springframework.security.ldap.search.FilterBasedLdapUserSearch"> <constructor-arg index="0"> <value>ou=People</value> </constructor-arg> <constructor-arg index="1"> <value>(uid={0})</value> </constructor-arg> <constructor-arg index="2"> <ref local="ldapContextSource" /> </constructor-arg> <property name="searchSubtree"> <value>true</value> </property> </bean> 4. Changed constructor tag , inside “bean id="ldapAuthenticationProvider" <constructor-arg> <bean class="org.springframework.security.providers.ldap.authenticator.BindAuthenticator"> <constructor-arg><ref local="ldapContextSource"/></constructor-arg> <property name="userSearch" ref="userSearch"/> <property name="userDnPatterns"> <list> <value>uid={0},ou=People</value> </list> </property> </bean> </constructor-arg> And my hierarchy for ldap directory is 1. dc=maxcrc,dc=com 2. ou=People,dc=maxcrc,dc=com 3. cn=user1,ou=People,dc=maxcrc,dc=com Please help me , I want login user “user1” who has password “test123” Thanks, Sathya
  3. Hey Yuriy, What about applicationcontext-security.xml , do I need to keep that
  4. Hi JasperSoft, I am trying to login users from LDAP to jasper. But facing problems as user not found. Steps I followed 1. Installed openldap. 2. created 2 users . say user1 with password “test123” and user 2 with password “test1234” 3.creating user I have done from jexplorer 4. 5.for user1 : dn is cn=user1,ou=People,dc=maxcrc,dc=com For user2 : dn is cn=user2,ou=People,dc=maxcrc,dc=com 6. After that I have edited the file applicationContext-security.xml C:Program Filesjasperreports-server-cp-5.1.0apache-tomcatwebappsjasperserverWEB-INFapplicationContext-security.xml As a. <bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager"> <property name="providers"> <list> <ref local="ldapAuthenticationProvider"/> <ref bean="${bean.daoAuthenticationProvider}"/> <!--ref bean="anonymousAuthenticationProvider"/--> <!--ref local="jaasAuthenticationProvider"/--> </list> </property> </bean> b. <bean id="ldapContextSource" class="com.jaspersoft.jasperserver.api.security.externalAuth.ldap.JSLdapContextSource"> <constructor-arg value="ldap://localhost:389/DC=maxcrc"/> <property name="userDn"><value>cn=user1,ou=People,dc=maxcrc,dc=com</value></property> <property name="password"><value>secret</value></property> </bean> c. <bean id="userSearch" class="org.springframework.security.ldap.search.FilterBasedLdapUserSearch"> <constructor-arg index="0"> <value></value> </constructor-arg> <constructor-arg index="1"> <value>(uid={0})</value> </constructor-arg> <constructor-arg index="2"> <ref local="ldapContextSource" /> </constructor-arg> <property name="searchSubtree"> <value>true</value> </property> </bean> d. <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}</value></list></property- -> <property name="userSearch" ref="userSearch"/> </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></value></constructor-arg> <property name="groupRoleAttribute"><value>title</value></property> <property name="groupSearchFilter"><value>(&(uniqueMember={0})(objectclass=groupofuniquenames))</value></property> <property name="searchSubtree"><value>true</value></property> </bean> </constructor-arg> </bean> e. After that I have seen some where “applicationContext-multiTenancy-security.xml” is require for external authentication for that I have copied this file from net . I will attach that file . After these configuration I am unable to see ldap user ‘s login to the jasper server. Please help me Where I missed my step Thanks , Sathya
×
×
  • Create New...