mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
16779a9e5d
rafal
(This used to be commit 78e123518c
)
27 lines
435 B
Plaintext
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;
|
|
|
|
%>
|