2 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Backup LDAP Serve...
FromSent OnAttachments
Michael MacFaddenJan 26, 2005 7:47 am 
Sam VarshavchikJan 26, 2005 4:22 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Backup LDAP Server with authldapActions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Jan 26, 2005 4:22:40 pm
List:net.sourceforge.lists.courier-users

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.