summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-25 02:26:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:30:01 -0500
commitfc9ffba41332b5755ede3683208ec989d30fdcd0 (patch)
tree0922d1830cd0af1b53279f533e6787c10123d04e
parent82f96542fa457b57bd7e7a4db69b950f6f025cca (diff)
downloadsamba-fc9ffba41332b5755ede3683208ec989d30fdcd0.tar.gz
samba-fc9ffba41332b5755ede3683208ec989d30fdcd0.tar.bz2
samba-fc9ffba41332b5755ede3683208ec989d30fdcd0.zip
r8745: make ldap.js cleanup after itself
(This used to be commit 3a1c6a176ed37b4d696dab52b2f2e8ce5b681ff5)
-rwxr-xr-xtestprogs/ejs/ldap.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/testprogs/ejs/ldap.js b/testprogs/ejs/ldap.js
index bf9b4ac105..28a08879cf 100755
--- a/testprogs/ejs/ldap.js
+++ b/testprogs/ejs/ldap.js
@@ -30,7 +30,7 @@ function basic_tests(ldb, base_dn)
ldb.del("cn=ldaptestuser,cn=users," + base_dn);
- ok = ldb.add("
+ var ok = ldb.add("
dn: cn=ldaptestuser,cn=users," + base_dn + "
objectClass: user
objectClass: person
@@ -47,6 +47,8 @@ cn: LDAPtestUSER
assert(res[0].objectGUID != undefined);
assert(res[0].whenCreated != undefined);
+ ok = ldb.del(res[0].dn);
+ assert(ok);
}
function find_basedn(ldb)