s4-dsdb: create a static system_session context
[ira/wip.git] / source4 / auth / gensec / schannel_state.c
index 1320db8933e533eee188549d8e9c33d98e29804f..163ae1570dab9544b748f63e0868961c52d7d878 100644 (file)
 #include "lib/ldb/include/ldb.h"
 #include "ldb_wrap.h"
 #include "../lib/util/util_ldb.h"
-#include "libcli/auth/libcli_auth.h"
 #include "auth/auth.h"
 #include "param/param.h"
-#include "auth/gensec/schannel_state.h"
 
 /**
   connect to the schannel ldb
@@ -50,8 +48,8 @@ struct ldb_context *schannel_db_connect(TALLOC_CTX *mem_ctx, struct tevent_conte
        existed = file_exist(path);
        
        ldb = ldb_wrap_connect(mem_ctx, ev_ctx, lp_ctx, path, 
-                              system_session(mem_ctx, lp_ctx), 
-                              NULL, LDB_FLG_NOSYNC, NULL);
+                              system_session(lp_ctx), 
+                              NULL, LDB_FLG_NOSYNC);
        talloc_free(path);
        if (!ldb) {
                return NULL;