1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-12 04:23:49 +03:00

r8488: after discussions with simo, moved to a full OO interface, so you don't need to keep

a 'db' variable around. The ldb object knows what it is connected to.

Added a simple ldb testsuite in testprogs/ldb.js
This commit is contained in:
Andrew Tridgell
2005-07-15 11:10:38 +00:00
committed by Gerald (Jerry) Carter
parent adae47c829
commit cf35818648
5 changed files with 109 additions and 61 deletions

View File

@@ -131,10 +131,10 @@ function setup_ldb(ldif, dbname, subobj)
data = data + extra;
data = substitute_var(data, subobj);
var db = ldb.connect(dbfile);
assert(db != undefined);
var ok = ldb.connect(dbfile);
assert(ok);
ok = ldb.add(db, data);
ok = ldb.add(data);
assert(ok);
}