Using the same sasldb2 at master and slave

Marcus Schopen lists at localguru.de
Mon Mar 10 12:38:47 EDT 2014


Am Mittwoch, den 26.02.2014, 00:04 +0100 schrieb Marcus Schopen:
> Hi,
> 
> still playing with replication and found another thing I'm not sure how
> to solve: is it possible to set a default REALM in imap.conf? I'm
> running a simple master/replication setup. The master authentication
> with local /etc/sasldb2 containing userIDs like
> tetstuser at hostname-master. I want to keep the authentication simple
> without a central database. If master goes down I have to switch IP or
> change DNS record and copy the master's sasdb2 database from backup to
> slave. Problem now: the authentication there will not work because the
> slavehost itself is running with another hostname and imap logins are
> locking for tetstuser at hostname-slave in the sasldb2 now and will not
> find those users. In other words: I have a master and a slave with two
> different hostnames, but want to use the same sasldb2 in copy without
> having duplicate userIDs like tetstuser at hostname-slave and
> tetstuser at hostname-master in it. Possible?

I use db_dump -p /etc/sasldb2 on the master, run a kind of sed script to
change the realm, folowed by a db_load and transfer the new sasldb to
the slave.

Ciao!





More information about the Cyrus-sasl mailing list