Random connection handler picks same ldap server every time

Daniel Fisher dfisher at vt.edu
Mon Oct 7 11:36:22 EDT 2013


On Mon, Oct 7, 2013 at 2:41 AM, Joep Driesen <Joep.Driesen at kuleuven.be> wrote:
> Hi all,
>
> I am trying to setup an Active-Active configuration using a jaas login.conf file.  Currently my setup is as follows:
>
> ShibUserPassAuth {
>
>         edu.vt.middleware.ldap.jaas.LdapLoginModule required
>           ldapUrl="ldaps://ldap1.example.com:636 ldaps://ldap2.example.com:636"
>           ssl="true"
>           connectionHandler="edu.vt.middleware.ldap.handler.DefaultConnectionHandler{{connectionStrategy=RANDOM}}"
>           timeout="1000"
>           baseDn="---"
>           bindDn="---"
>           bindCredential="---"
>           tls="false"
>           userFilter="uid={0}"
>           setLdapPrincipal="false"
>           subtreeSearch="true"
>         ;
>
> };
>
> It seems shibboleth always picks the first LDAP server for authentication, whereas I would like it to switch between both servers. I'm not sure how to troubleshoot this, so any advice would be welcome.
>
> I have made sure that both LDAP servers work correctly when used on their own, so that should not be the problem...

Can you provide some TRACE logging for the edu.vt.middleware.ldap package?

--Daniel Fisher


More information about the users mailing list