Michael MacFadden writes:
All,
I have courier-imap set up with the authlib using authldap as the auth mechanism. Everything is working well at the moment. I have recently set up LDAP replication so that I have 1 master and 1 slave server. My question is, is there a way (and if so how) do you tell authdaemon that there is a backup server available that it should try if the primary fails. Currently I have the following in my authldaprc file:
##NAME: LOCATION:0 # # Location of your LDAP server:
LDAP_SERVER localhost LDAP_PORT 389
Any info would be much appreciated. Thanks.
According to OpenLDAP's manual pages:
ldap_open() takes host, the hostname on which the LDAP server is run-
ning, and port, the port number to which to connect. If the default
IANA-assigned port of 389 is desired, LDAP_PORT should be specified
for port. The host parameter may contain a blank-separated list of
hosts to try to connect to, and each host may optionally by of the
form host:port.So, you just need to list all the server hostnames, separated by a single space.
pgpoewuuxBLEW.pgp
Description: PGP signature
