Hie,
I have one ldap proxy server and 2 ldap servers in mirror mode with syncrep. My proxy ldap server ask all to one of the two servers in mirror mode. l'm trying to find a way to specifie in the proxy ldap config to ask all to the second server when the first is down.
Thank you for your help,
Sebastien CAMELLINI
----- "Sébastien CAMELLINI" seb.secu@gmail.com wrote:
Hie,
I have one ldap proxy server and 2 ldap servers in mirror mode with syncrep. My proxy ldap server ask all to one of the two servers in mirror mode. l'm trying to find a way to specifie in the proxy ldap config to ask all to the second server when the first is down.
See the slapd-ldap man page:
uri <ldapurl> LDAP server to use. Multiple URIs can be set in a single ldapurl argument, resulting in the underlying library automatically call the first server of the list that responds, e.g.
uri "ldap://host/ ldap://backup-host/"
The URI list is space- or comma-separated. Whenever the server that responds is not the first one in the list, the list is rearranged and the responsive server is moved to the head, so that it will be first con- tacted the next time a connection needs be created.
Thanks.
Sébastien CAMELLINI wrote:
Hie,
I have one ldap proxy server and 2 ldap servers in mirror mode with syncrep. My proxy ldap server ask all to one of the two servers in mirror mode. l'm trying to find a way to specifie in the proxy ldap config to ask all to the second server when the first is down.
Assuming you're using back-ldap, use
uri "ldap://server1 ldap://server2"
please be aware that in case server1 is unavailable, server2 will be used. If server2 is available, the URI string will be internally rearranged by moving servers that do not work to the tail. Further connections will thus try server2, then server1.
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it ----------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Fax: +39 0382 476497 Email: ando@sys-net.it -----------------------------------
openldap-software@openldap.org