r25446: Merge some changes I made on the way home from SFO:
[jelmer/samba4-debian.git] / source / auth / gensec / schannel_state.c
index afbbd618eb8efa1685a5eb0f3727b2e4d57d709b..46fb48ffd3f1ec3e7339c7fbbe35e55498531954 100644 (file)
@@ -41,14 +41,15 @@ struct ldb_context *schannel_db_connect(TALLOC_CTX *mem_ctx)
                "computerName: CASE_INSENSITIVE\n" \
                "flatname: CASE_INSENSITIVE\n";
 
-       path = smbd_tmp_path(mem_ctx, "schannel.ldb");
+       path = smbd_tmp_path(mem_ctx, global_loadparm, "schannel.ldb");
        if (!path) {
                return NULL;
        }
 
        existed = file_exist(path);
        
-       ldb = ldb_wrap_connect(mem_ctx, path, system_session(mem_ctx), 
+       ldb = ldb_wrap_connect(mem_ctx, global_loadparm, path, 
+                              system_session(mem_ctx), 
                               NULL, LDB_FLG_NOSYNC, NULL);
        talloc_free(path);
        if (!ldb) {