Announcement Announcement Module
Collapse
No announcement yet.
Multiple ldap URLS Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multiple ldap URLS

    We are using acegi security and all works well.

    We have the following bean config, which works fine.

    ....
    <bean id="initialDirContextFactory" class="org.acegisecurity.providers.ldap.DefaultIni tialDirContextFactory">
    <constructor-arg value="${oid.provider.url.master} "/>
    <propertyname="managerDn">
    <value>${oid.security.principal}</value>
    </property>
    <property name="managerPassword">
    <value>${oid.security.credentials}</value>
    </property>
    </bean>
    ....

    Now what I want to do is introduce a slave or secondary LDAP server

    The Java doc for:
    org.acegisecurity.providers.ldap.DefaultInitialDir ContextFactory

    says:

    The Sun JNDI provider also supports lists of space-separated URLs, each of which will be tried in turn until a connection is obtained.

    I know that I need to configure a JINDI realm in Tomcat can some one
    point me to some doco on how to incorperate this in to the spring config?

    Thanks matt

  • #2
    I know that I need to configure a JINDI realm in Tomcat can some one
    point me to some doco on how to incorperate this in to the spring config?
    You don't need to do anything to tomcat. The docs are referring to Sun's LDAP implementation in the JDK.

    Comment


    • #3
      I downloaded the latest jar rather than continuing with the RC2 jars
      and it all works fine. The RC2 jars would throw a parse error when I
      added in the bean definition below with 2 URLS.

      ....
      <bean id="initialDirContextFactory" class="org.acegisecurity.providers.ldap.DefaultIni tialDirContextFactory">
      <constructor-arg value="${oid.provider.url.master} ${oid.provider.url.slave} "/>
      <propertyname="managerDn">
      <value>${oid.security.principal}</value>
      </property>
      <property name="managerPassword">
      <value>${oid.security.credentials}</value>
      </property>
      </bean>
      ....

      Comment

      Working...
      X