Multiple LDAP Configuration for uPortal
How do I configure multiple LDAP sources for uPortal?
To configure uPortal for multiple LDAP sources follow these steps.
Note: All bean names referenced are from stock uPortal 2.6.1 configuration files.
- Configure ldap.xml so that each directory source is specified
- Be sure to note the values you set for the
tags as we will need them later - Remove/Rename ldap.properties so that ldap.xml is used
- Edit personDirectory.xml
- Create as many beans within the bean named "mergedPersonAttributeDao" as needed (one for each LDAP source)
- The beans should be placed in the <list> tag with unique names that we will recall in the next step (i.e. uPortalLdapStudentSource could be used for the LDAP source were student accounts reside)
- Scroll down to the 'LDAP Person Attribute Source' section where you will find a default LDAP configuration
- Rename the bean so that it matches the bean name you chose in step 3
- Change any mappings as needed
- Towards the bottom you will find another bean named defaultLdapServer, replace this section with the following.
- Notice the Students value in the <list> container, this should be changed to what you named your source in ldap.xml, everything else can stay the same.
- Now that you have configured personDirectory for one of your LDAP sources you can repeat the process for any other sources that you may have. It is required that you have an entire mapping section for each source.
<property name="ldapServer">
<bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="staticMethod">
<value>org.jasig.portal.ldap.LdapServices.getLdapServer</value>
</property>
<property name="arguments">
<list>
<value>Students</value>
</list>
</property>
</bean>
</property>
