r12232: I hate SWAT code being outside 'source'. Add in code to push the
[samba.git] / swat / esptest / ldb.esp
index 93bc9e0d810cb56c5235bc19759f3eb6879f6f96..cf2725fbcf76cc45f5d0ec96503fe11964d0a3b6 100644 (file)
@@ -9,6 +9,8 @@ var lp = loadparm_init();
 var dbfile = lp.get("sam database");
 var attrs = new Array("name", "dnsDomain", "objectSid", "dn");
 var ldb = ldb_init();
+ldb.session_info = session.authinfo.session_info;
+
 var ok = ldb.connect(dbfile);
 assert(ok);