]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dsdb: Use ldb_handle_use_global_event_context for rootdse modifies
authorAndrew Bartlett <abartlet@samba.org>
Thu, 11 May 2017 23:55:45 +0000 (01:55 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 31 May 2017 08:47:46 +0000 (10:47 +0200)
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 <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed May 31 10:47:46 CEST 2017 on sn-devel-144

source4/dsdb/samdb/ldb_modules/rootdse.c

index d3483fc5bf4607aaa6b7dd2956daa2113475cc60..d1a4409b602fb6c00c6ae8744bdf1866042c9b79 100644 (file)
@@ -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) {