Re: Using the same sasldb2 at master and slave

Marcus Schopen <[email protected]>
Newsgroups gmane.comp.security.cyrus.sasl
Message-ID <1394469527.3154.3.camel@cramer>
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@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@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@hostname-slave and
> tetstuser@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!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.