diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-10-12 08:53:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:39:43 -0500 |
commit | 2e61cce2b43570245825c3bdb9ee526fcbbceb6c (patch) | |
tree | ee114054c388c5f7953fee52f053bba2f19fe274 | |
parent | c8978cb1f15b1ddc0c420baa568bd11db080b744 (diff) | |
download | samba-2e61cce2b43570245825c3bdb9ee526fcbbceb6c.tar.gz samba-2e61cce2b43570245825c3bdb9ee526fcbbceb6c.tar.bz2 samba-2e61cce2b43570245825c3bdb9ee526fcbbceb6c.zip |
r10919: fixed the ldb test for the new operational module
(This used to be commit 915878d7cebacf499c0c9d264a2dcbc82b521dfd)
-rwxr-xr-x | testprogs/ejs/ldb.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/testprogs/ejs/ldb.js b/testprogs/ejs/ldb.js index 812c5a5b96..c681ee9ebb 100755 --- a/testprogs/ejs/ldb.js +++ b/testprogs/ejs/ldb.js @@ -65,7 +65,7 @@ function setup_modules(ldb) { ok = ldb.add(" dn: @MODULES -@LIST: timestamps,objectguid,rdn_name +@LIST: operational,objectguid,rdn_name "); } @@ -92,12 +92,13 @@ cn: X9 var res = ldb.search("x=8", NULL, ldb.SCOPE_DEFAULT); assert(res[0].objectGUID != undefined); - assert(res[0].createTimestamp != undefined); + assert(res[0].createTimestamp == undefined); assert(res[0].whenCreated != undefined); assert(res[0].name == "x8"); assert(res[0].cn == "x8"); - var res2 = ldb.search("x=9", NULL, ldb.SCOPE_DEFAULT); + var attrs = new Array("*", "createTimestamp"); + var res2 = ldb.search("x=9", NULL, ldb.SCOPE_DEFAULT, attrs); assert(res2[0].objectGUID != undefined); assert(res2[0].createTimestamp != undefined); assert(res2[0].whenCreated != undefined); |