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:
46de306
)
r12322: automatically use cmdline_credentials if the ldb object doesn't have
author
Andrew Tridgell
<tridge@samba.org>
Sun, 18 Dec 2005 22:14:14 +0000
(22:14 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:47:29 +0000
(13:47 -0500)
its own credentials element
(This used to be commit
de8975bdd3dc9b4f4d65000e126bbd11c43b3f06
)
source4/scripting/ejs/smbcalls_ldb.c
patch
|
blob
|
history
diff --git
a/source4/scripting/ejs/smbcalls_ldb.c
b/source4/scripting/ejs/smbcalls_ldb.c
index 709ed27e5ed5fb668f855f8be3a994676cea7c79..7c81b8c826a5578262f0f15c628e8ee536873cb8 100644
(file)
--- a/
source4/scripting/ejs/smbcalls_ldb.c
+++ b/
source4/scripting/ejs/smbcalls_ldb.c
@@
-26,6
+26,7
@@
#include "lib/appweb/ejs/ejs.h"
#include "lib/ldb/include/ldb.h"
#include "lib/ldb/include/ldb_errors.h"
+#include "lib/cmdline/popt_common.h"
/*
get the connected db
@@
-370,6
+371,9
@@
static int ejs_ldbConnect(MprVarHandle eid, int argc, char **argv)
session_info = mprGetThisPtr(eid, "session_info");
creds = mprGetThisPtr(eid, "credentials");
+ if (creds == NULL) {
+ creds = cmdline_credentials;
+ }
dbfile = argv[0];