r24958: This is the final text, and the final version. I'll send the release
[jelmer/samba4-debian.git] / services / samba / config.esp
1 <%
2
3 /*
4  * Copyright (C)  Rafal Szczesniak 2007
5  */
6
7 /* Simple JSON-RPC access to the configuration parameters */
8
9 function _lp_get(params, error)
10 {
11   if (params.length < 1)
12   {
13     error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
14                    "no parameter specified");
15     return error;
16   }
17
18   var lp = loadparm_init();
19   var name = params[0];
20   var value = lp.get(name);
21
22   return value;
23 }
24 jsonrpc.method.lp_get = _lp_get;
25
26 %>