1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-25 19:33:18 +03:00

r12744: For correctly written scripts, we don't need this anymore. Only use

the cmdline credentials if we ask for it.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett
2006-01-06 19:37:13 +00:00
committed by Gerald (Jerry) Carter
parent 5e8b365fa2
commit 874dd09759

View File

@@ -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];