svn commit: samba r12744 - in branches/SAMBA_4_0/source/scripting/ejs: .

abartlet at samba.org abartlet at samba.org
Fri Jan 6 19:37:14 GMT 2006


Author: abartlet
Date: 2006-01-06 19:37:13 +0000 (Fri, 06 Jan 2006)
New Revision: 12744

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12744

Log:
For correctly written scripts, we don't need this anymore.  Only use
the cmdline credentials if we ask for it.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/scripting/ejs/smbcalls_ldb.c


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls_ldb.c
===================================================================
--- branches/SAMBA_4_0/source/scripting/ejs/smbcalls_ldb.c	2006-01-06 16:12:45 UTC (rev 12743)
+++ branches/SAMBA_4_0/source/scripting/ejs/smbcalls_ldb.c	2006-01-06 19:37:13 UTC (rev 12744)
@@ -386,7 +386,7 @@
 {
 	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 @@
 	credentials = mprGetProperty(this, "credentials", NULL);
 	if (credentials) {
 		creds = mprGetPtr(credentials, "creds");
-	} else {
-		creds = cmdline_credentials;
 	}
 
 	dbfile = argv[0];



More information about the samba-cvs mailing list