diff options
author | Ludwig Krispenz <lkrispen@redhat.com> | 2015-08-24 13:29:35 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2015-10-30 13:47:25 +0100 |
commit | 22a999267c328bab7fd1d29434ac992f4b02e6c6 (patch) | |
tree | 64efc4ad2def5e4da821528b203e58f295018c9f /daemons | |
parent | 6f855dcc5cbd4a316ae03cdf0e2cc7e8c21bec88 (diff) | |
download | freeipa-22a999267c328bab7fd1d29434ac992f4b02e6c6.tar.gz freeipa-22a999267c328bab7fd1d29434ac992f4b02e6c6.tar.xz freeipa-22a999267c328bab7fd1d29434ac992f4b02e6c6.zip |
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>
Diffstat (limited to 'daemons')
-rw-r--r-- | daemons/ipa-slapi-plugins/topology/topology_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/daemons/ipa-slapi-plugins/topology/topology_util.c b/daemons/ipa-slapi-plugins/topology/topology_util.c index 6019f0fd0..0e348ca74 100644 --- a/daemons/ipa-slapi-plugins/topology/topology_util.c +++ b/daemons/ipa-slapi-plugins/topology/topology_util.c @@ -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); |