mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-25 22:50:12 -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:
1 parent
6f855dcc5c
commit
22a999267c
1 file changed
+2
-1
@@ -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