Configuring Multiple LDAP Servers for Authentication Only (OsUser)
Problem
There are multiple LDAP directories in use that Confluence will need to use for user authentication.
This page relates to a deprecated library, OSUser. For current versions of Confluence, see Configuring multiple LDAP repositories.
The osuser.xml file stores the connection strings for LDAP servers you are trying to connect to. You are able to define multiple {{LDAPCredentialsProvider}} in the osuser.xml which allows for connections to be made to separate LDAP servers hosting different user information. This allows you to
Authenticate with different LDAP users from different server onto Confluence.
Resolution
This is achievable by defining more than one LDAPCredentialsProvider
in the osuser.xml
file as shown below:
<provider class="com.opensymphony.user.provider.ldap.LDAPCredentialsProvider">
<property name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</property>
<property name="java.naming.provider.url">Host1</property>
..............
..............
</provider>
<provider class="com.opensymphony.user.provider.ldap.LDAPCredentialsProvider">
<property name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</property>
<property name="java.naming.provider.url">Host2</property>
..............
..............
</provider>