mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-08-14 06:54:55 -05:00
reject agreement only if both ends are managed
the creation or deletion of a replication agreemet is rejected if the servers are managed for the suffix. But bot endpoints need to checked Reviewed-By: Thierry Bordaz <tbordaz@redhat.com>
This commit is contained in:
committed by
Martin Basti
parent
6f855dcc5c
commit
22a999267c
@@ -1042,7 +1042,8 @@ ipa_topo_util_target_is_managed(Slapi_Entry *e)
|
||||
repl_root = slapi_entry_attr_get_charptr(e,"nsDS5ReplicaRoot");
|
||||
replica = ipa_topo_cfg_replica_find(repl_root,1);
|
||||
if (targethost && replica &&
|
||||
ipa_topo_cfg_host_find(replica, targethost, 1)) {
|
||||
ipa_topo_cfg_host_find(replica, targethost, 1) &&
|
||||
ipa_topo_cfg_host_find(replica, ipa_topo_get_plugin_hostname(), 1)) {
|
||||
ret = 1;
|
||||
}
|
||||
slapi_ch_free_string(&targethost);
|
||||
|
||||
Reference in New Issue
Block a user