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

Boris Gisselere

Members
  • Posts

    17
  • Joined

  • Last visited

Community Answers

  1. Boris Gisselere's post in [RESOLVED] Jasper 5.1 : LDAP search stops after "Found DN" : [LDAP: error code 49 - Invalid Credentials] was marked as the answer   
    We did it. So it was what we suspected the other day .. we just took the part of code to encrypt password which was used in Creating users application in LDAP, ans do we made a single jar of it, and implemented it with this code in application context file :
       <bean id="ldapAuthenticationProvider" class="org.springframework.security.providers.ldap.LdapAuthenticationProvider">
            <constructor-arg>
                    <bean class="org.springframework.security.providers.ldap.authenticator.PasswordComparisonAuthenticator">
                            <constructor-arg><ref local="ldapContextSource"/></constructor-arg>
                            <property name="userSearch" ref="userSearch"/>
                            <property name="passwordEncoder" ref="OurPasswordEncoder"/>
                    </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"/>
                    <property name="groupSearchFilter" value="(cn={1})"/>
                    <property name="searchSubtree" value="true"/>
                    <!-- Can setup additional external default roles here  <property name="defaultRole" value="LDAP"/> -->
                </bean>
            </constructor-arg>
        </bean>

        <bean class="our.jasper.auth.encoding.JasperPasswordEncoder" id="OurPasswordEncoder"/>

     
×
×
  • Create New...