Fix for issue 3443 : subsuffix replication problem
when a new replication domain, the check that was done to
verify that there isn't a domain already configured for the
given base-dn was wrong and was preventing configuration
of sub-suffix replication.
This code now prevent creation only if the suffixes are
equals.
| | |
| | | { |
| | | // Check that there is not already a domain with the same DN |
| | | DN dn = configuration.getBaseDN(); |
| | | if (MultimasterReplication.findDomain(dn,null) != null) |
| | | ReplicationDomain domain = MultimasterReplication.findDomain(dn, null); |
| | | if ((domain != null) && (domain.baseDN.equals(dn))) |
| | | { |
| | | Message message = ERR_SYNC_INVALID_DN.get(); |
| | | unacceptableReasons.add(message); |