git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ee24ce
)
r12324: use command line credentials if available in ldap.js
author
Andrew Tridgell
<tridge@samba.org>
Sun, 18 Dec 2005 22:28:12 +0000
(22:28 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:47:29 +0000
(13:47 -0500)
(This used to be commit
f4f99f9af33699ac8fe43b09fa7542aab72a031a
)
testprogs/ejs/ldap.js
patch
|
blob
|
history
diff --git
a/testprogs/ejs/ldap.js
b/testprogs/ejs/ldap.js
index e1099d5ff0cf3345ba5db1637ef4c82af7431a13..561d5d86f887e6ddabb7a93285f087f07572d5d1 100755
(executable)
--- a/
testprogs/ejs/ldap.js
+++ b/
testprogs/ejs/ldap.js
@@
-15,6
+15,8
@@
if (options == undefined) {
return -1;
}
+libinclude("base.js");
+
if (options.ARGV.length != 1) {
println("Usage: ldap.js <HOST>");
return -1;
@@
-57,9
+59,14
@@
function find_basedn(ldb)
return res[0].defaultNamingContext;
}
+/* use command line creds if available */
+ldb.credentials = options.get_credentials();
+
var ok = ldb.connect("ldap://" + host);
var base_dn = find_basedn(ldb);
+printf("baseDN: %s\n", base_dn);
+
basic_tests(ldb, base_dn)
return 0;