summaryrefslogtreecommitdiffstats
path: root/testprogs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-25 02:26:38 +0000
committerAndrew Tridgell <tridge@samba.org>2005-07-25 02:26:38 +0000
commit70ee3b40e979f224c9ff88ba2fe7aa93cb54b76b (patch)
tree9a7db6f6479d8f74de5bf39e473ee1351b0e7298 /testprogs
parent46f3eddba041c1f17eaee5a08eda8b4eb7e1af3d (diff)
downloadsamba-70ee3b40e979f224c9ff88ba2fe7aa93cb54b76b.tar.gz
samba-70ee3b40e979f224c9ff88ba2fe7aa93cb54b76b.tar.xz
samba-70ee3b40e979f224c9ff88ba2fe7aa93cb54b76b.zip
r8745: make ldap.js cleanup after itself
Diffstat (limited to 'testprogs')
-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 bf9b4ac1054..28a08879cf5 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)