Announcement Announcement Module
Collapse
No announcement yet.
BindAuthenticator.a: Failed Authn xxx,org.springframework.ldap.CommunicationExceptio n Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • BindAuthenticator.a: Failed Authn xxx,org.springframework.ldap.CommunicationExceptio n

    Hi
    I am using spring3.x for ldap authentication where i am testing multiple urls for failover scenario following are my context entries. getting CommunicationException

    BindAuthenticator.authenticate: Failed Authenticating [NileDi] Nilesh Dipak, caught org.springframework.ldap.CommunicationException.


    <bean id="adTemplate" class="org.springframework.ldap.core.LdapTemplate" >
    <constructor-arg>
    <bean class="org.springframework.ldap.core.support.LdapC ontextSource">
    <!-- <property name="url" value="${ldap:ad.server.url}"/> -->
    <!-- <property name="urls" value="ldap://xxxx.com:389, ldap://xxx.com:389"/> -->
    <property name="urls">
    <list>
    <value>ldap://xxx.com:389</value>
    <value>ldap://xxx.com:389</value>
    </list>
    </property>
    <property name="userDn" value="${ldap:ad.bind.dn}"/>
    <property name="password" value="${ldap:ad.bind.pw}"/>
    <property name="dirObjectFactory" value="org.springframework.ldap.core.support.Defau ltDirObjectFactory"/>
    </bean>
    </constructor-arg>
    <property name="ignorePartialResultException" value="true"/>
    </bean>

  • #2
    It got resolved
    one more bean which was referencing above bean adTemplate was using parameter url which i have changed to urls and given all parameters now it is working.

    <bean id="adAccessor" class="com.xxxx.xxxx.model.ldap.ADUserAccessor">
    <constructor-arg ref="adTemplate"/>
    <constructor-arg>
    <bean class="com.xxxx.xxxx.model.ldap.ADClientContextMap per">
    <constructor-arg ref="adTemplate"/>
    <constructor-arg>
    <bean class="com.xxx.portal.model.ldap.BindAuthenticator ">
    <!--<constructor-arg value="${ldap:ad.server.url}"/> -->
    <property name="urls">
    <list>
    <value>ldap://xxx.com:389</value>
    <value>ldap://xxxx.com:389</value>
    <value>ldap://xxxx.com:389</value>
    </list>

    </property>
    </bean>
    </constructor-arg>
    <constructor-arg ref="clientDAO"/>
    </bean>
    </constructor-arg>
    <constructor-arg value="${ldap:ad.user.search.base}"/>
    <constructor-arg value="${ldap:ad.user.filter}"/>
    </bean>

    Comment

    Working...
    X