diff options
author | Ludwig Krispenz <lkrispen@redhat.com> | 2015-08-06 16:40:52 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2015-08-10 17:35:10 +0200 |
commit | 41cbea0026b191d8410af2cf00a71aad5357f43f (patch) | |
tree | 747aafa5b5250f81f29538e6c001c564afa88e61 /daemons/ipa-slapi-plugins/topology/topology_agmt.c | |
parent | 8b8acf95dcf0b4cc8baa2344c5e68f8632f590c1 (diff) | |
download | freeipa-cstopology.tar.gz freeipa-cstopology.tar.xz freeipa-cstopology.zip |
handle multiple managed suffixescstopology
trigger topology updaet if suffix entry is added
trigger topology update if managedSuffix is modified in host entry
Diffstat (limited to 'daemons/ipa-slapi-plugins/topology/topology_agmt.c')
-rw-r--r-- | daemons/ipa-slapi-plugins/topology/topology_agmt.c | 12 |
1 files changed, 6 insertions, 6 deletions
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(); |