[Date Prev][Date Next] [Chronological] [Thread] [Top]

Patch for enabling Multi Master servers (ITS#170)

Full_Name: Philipp Klaus
Version: 1.2.1
OS: Linux
URL: http://www.internet.access.ch/openldap/ldap_multimaster.patch
Submission from: (NULL) (

OpenLDAP release 1.2.1 wasn't able to handle situations where multi servers
accept write statements and distribute them to all other servers (for failover
capabilities in write commands too).

A quick look at the code showed that for each change (add, delete, modify)
command a
record is written to the replica log file if a replica statement exists in the 
configuration file. I changed this so that the log file record is only written
the write command was NOT submitted by the replication user.
This has the drawback that multi-level replication isn't possible anymore but
is of no value for me because the replication is only used for enabling high
availability (clustering) on our site.

All changes are ifdef'ed by _INA_MULTI_MASTER so compiling without the changes
still possible.

I suggest including the patch with the (probably renamed) ifdefs in place so
that the
multi-master capabilities are a compile time option.

All code is given to the open source community free of charge.