From a2cad19bbddfdbef6a01d6cf300dabbc9cf96165 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 6 Jan 2006 19:37:13 +0000 Subject: 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) --- source4/scripting/ejs/smbcalls_ldb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source4') 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]; -- cgit