summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-06-09 00:04:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:00 -0500
commit2f16057bf477c2ea958d82f25a3fd533d876e0ff (patch)
treed28321123abe16eb135882ee46f7e72113ea294a
parent4a350fd18ffff1f9164a0a8e406bbafaab609547 (diff)
downloadsamba-2f16057bf477c2ea958d82f25a3fd533d876e0ff.tar.gz
samba-2f16057bf477c2ea958d82f25a3fd533d876e0ff.tar.bz2
samba-2f16057bf477c2ea958d82f25a3fd533d876e0ff.zip
r16110: Start some simple rootDSE LDAP tests in ejs.
Andrew Bartlett (This used to be commit 0201f0df3f3768f0d831c84c573b27bff58d00c6)
-rwxr-xr-xtestprogs/ejs/ldap.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/testprogs/ejs/ldap.js b/testprogs/ejs/ldap.js
index 90a69cf1a2..69e784a59e 100755
--- a/testprogs/ejs/ldap.js
+++ b/testprogs/ejs/ldap.js
@@ -309,6 +309,13 @@ objectClass: user
assert(res[0].cn == "ldaptestutf8user2 èùéìòà");
}
+ println("Testing for highestCommittedUSN");
+ var attrs = new Array("highestCommittedUSN");
+ var res = ldb.search("", "", ldb.SCOPE_BASE, attrs);
+ assert(res.length == 1);
+ assert(res[0].highestCommittedUSN != undefined);
+ assert(res[0].highestCommittedUSN != 0);
+
}
function find_basedn(ldb)