summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-01-06 19:37:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:49:48 -0500
commita2cad19bbddfdbef6a01d6cf300dabbc9cf96165 (patch)
tree9a361efb246822b0c7c70c105e0e51e1126980d9
parentdbef4d76de92c3388f4e1819a76d6febf90be290 (diff)
downloadsamba-a2cad19bbddfdbef6a01d6cf300dabbc9cf96165.tar.gz
samba-a2cad19bbddfdbef6a01d6cf300dabbc9cf96165.tar.bz2
samba-a2cad19bbddfdbef6a01d6cf300dabbc9cf96165.zip
r12744: For correctly written scripts, we don't need this anymore. Only use
the cmdline credentials if we ask for it. Andrew Bartlett (This used to be commit 874dd09759eb0243988f39363c94785ae2e68485)
-rw-r--r--source4/scripting/ejs/smbcalls_ldb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/scripting/ejs/smbcalls_ldb.c b/source4/scripting/ejs/smbcalls_ldb.c
index f1d59ec2af..798747b36c 100644
--- a/source4/scripting/ejs/smbcalls_ldb.c
+++ b/source4/scripting/ejs/smbcalls_ldb.c
@@ -386,7 +386,7 @@ static int ejs_ldbConnect(MprVarHandle eid, int argc, char **argv)
{
struct ldb_context *ldb;
struct auth_session_info *session_info;
- struct cli_credentials *creds;
+ struct cli_credentials *creds = NULL;
struct MprVar *credentials;
struct MprVar *this = mprGetProperty(ejsGetLocalObject(eid), "this", 0);
@@ -402,8 +402,6 @@ static int ejs_ldbConnect(MprVarHandle eid, int argc, char **argv)
credentials = mprGetProperty(this, "credentials", NULL);
if (credentials) {
creds = mprGetPtr(credentials, "creds");
- } else {
- creds = cmdline_credentials;
}
dbfile = argv[0];