Multiple LDAP servers
Closed this issue · 2 comments
Some services allow to specify more than one LDAP server for fallback. They are used in succession if the first doesn't work.
Is there a way to specify multiple LDAP servers?
Like ldap.url=ldaps://ldap1.my.domain ldap2.my.domain:636/
or ldap.url=ldaps://ldap1.my.domain:636,ldaps://ldap2.my.domain:636/
Thanks.
Oh, ok. https://docs.oracle.com/javase/7/docs/technotes/guides/jndi/jndi-ldap-gl.html#URLS To configure an LDAP service provider, you typically supply one or more space-separated LDAP or LDAPS URLs in the java.naming.provider.url property.
This should be the syntax.
ldap.url=ldaps://ldap1.my.domain:636 ldaps://ldap2.my.domain:636/ ldaps://ldap3..my.domain:636/
And it works.
I'd be happy to accept a documentation pull-request if you want to write one which describes how to configure multiple servers.