From 41cbea0026b191d8410af2cf00a71aad5357f43f Mon Sep 17 00:00:00 2001 From: Ludwig Krispenz Date: Thu, 6 Aug 2015 16:40:52 +0200 Subject: handle multiple managed suffixes trigger topology updaet if suffix entry is added trigger topology update if managedSuffix is modified in host entry --- daemons/ipa-slapi-plugins/topology/topology_agmt.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'daemons/ipa-slapi-plugins/topology/topology_agmt.c') diff --git a/daemons/ipa-slapi-plugins/topology/topology_agmt.c b/daemons/ipa-slapi-plugins/topology/topology_agmt.c index 05edad342..6c8308a0a 100644 --- a/daemons/ipa-slapi-plugins/topology/topology_agmt.c +++ b/daemons/ipa-slapi-plugins/topology/topology_agmt.c @@ -228,20 +228,20 @@ ipa_topo_agmt_setup(char *hostname, TopoReplica *conf, } if (agmt->repl_attrs) { slapi_entry_add_string(e, "nsDS5ReplicatedAttributeList",agmt->repl_attrs); - } else { - slapi_entry_add_string(e, "nsDS5ReplicatedAttributeList", REPL_ATTR_LIST); + } else if (conf->repl_attrs) { + slapi_entry_add_string(e, "nsDS5ReplicatedAttributeList",conf->repl_attrs); } if (agmt->strip_attrs) { slapi_entry_add_string(e, "nsds5ReplicaStripAttrs", agmt->strip_attrs); - } else { - slapi_entry_add_string(e, "nsds5ReplicaStripAttrs", REPL_ATTR_STRIP); + } else if (conf->strip_attrs) { + slapi_entry_add_string(e, "nsds5ReplicaStripAttrs", conf->strip_attrs); } if (agmt->total_attrs) { slapi_entry_add_string(e, "nsDS5ReplicatedAttributeListTotal", agmt->total_attrs); - } else { + } else if (conf->total_attrs) { slapi_entry_add_string(e, "nsDS5ReplicatedAttributeListTotal", - REPL_ATTR_LIST_TOTAL); + conf->total_attrs); } pb = slapi_pblock_new(); -- cgit