From 106779fcf3bf96eaa82adfa020a31a4634afda43 Mon Sep 17 00:00:00 2001 From: Rafal Szczesniak Date: Tue, 20 Mar 2007 22:44:22 +0000 Subject: [PATCH] r21896: - Enable creating default NetContext when no explicit credentials are passed. In such case use what's been provided on swat session logon. - Create a proper NetContext object only once and add it to the resources for later use. rafal --- services/samba/ejsnet.esp | 90 ++++++++++++++++++++++----------------- 1 file changed, 52 insertions(+), 38 deletions(-) diff --git a/services/samba/ejsnet.esp b/services/samba/ejsnet.esp index 7ab0e029129..15b6b9b907b 100644 --- a/services/samba/ejsnet.esp +++ b/services/samba/ejsnet.esp @@ -11,53 +11,67 @@ jsonrpc_include("resources.esp"); function _NetContext(params, error) { + var credParams, credentials; + var resName; + if (params.length < 1) { - error.setError(jsonrpc.Constant.ServerError.ParameterMismatch, - "too few parameters(usage: [