r26227: Make loadparm_context part of a server task, move loadparm_contexts further...
[kai/samba.git] / source4 / rpc_server / common / server_info.c
index c6f93f076a696b9338057837b4df655c1160b585..6896c9fada207038a5c0739f7efed32328ad75cf 100644 (file)
@@ -118,7 +118,7 @@ _PUBLIC_ uint32_t dcesrv_common_get_server_type(TALLOC_CTX *mem_ctx, struct dces
                                break;
                        }
                        /* open main ldb */
-                       samctx = samdb_connect(tmp_ctx, anonymous_session(tmp_ctx));
+                       samctx = samdb_connect(tmp_ctx, global_loadparm, anonymous_session(tmp_ctx));
                        if (samctx == NULL) {
                                DEBUG(2,("Unable to open samdb in determining server announce flags\n"));
                        } else {