From: Andrew Bartlett Date: Thu, 11 May 2017 23:55:45 +0000 (+0200) Subject: dsdb: Use ldb_handle_use_global_event_context for rootdse modifies X-Git-Tag: ldb-1.1.31~184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7259661467776a76c4fa3aabaf1ae8a3d531e506;p=thirdparty%2Fsamba.git dsdb: Use ldb_handle_use_global_event_context for rootdse modifies The modify operations on the rootDSE turn into IRPC messages, and these need to be handled on the global event context, not the per-operation context Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher Reviewed-by: Garming Sam Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Wed May 31 10:47:46 CEST 2017 on sn-devel-144 --- diff --git a/source4/dsdb/samdb/ldb_modules/rootdse.c b/source4/dsdb/samdb/ldb_modules/rootdse.c index d3483fc5bf4..d1a4409b602 100644 --- a/source4/dsdb/samdb/ldb_modules/rootdse.c +++ b/source4/dsdb/samdb/ldb_modules/rootdse.c @@ -1520,6 +1520,12 @@ static int rootdse_become_master(struct ldb_module *module, */ rootdse_del_trans(module); + /* + * We must use the global event loop to run this IRPC in + * single process mode + */ + ldb_handle_use_global_event_context(req->handle); + msg = imessaging_client_init(tmp_ctx, lp_ctx, ldb_get_event_context(ldb)); if (!msg) {