1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/services/samba/config.esp
Rafal Szczesniak 16779a9e5d r21788: Add new JSON-RPC services.
rafal
(This used to be commit 78e123518c)
2007-10-10 14:49:26 -05:00

27 lines
435 B
Plaintext

<%
/*
* Copyright (C) Rafal Szczesniak 2007
*/
/* Simple JSON-RPC access to the configuration parameters */
function _lp_get(params, error)
{
if (params.length < 1)
{
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"no parameter specified");
return error;
}
var lp = loadparm_init();
var name = params[0];
var value = lp.get(name);
return value;
}
jsonrpc.method.lp_get = _lp_get;
%>