1 <% page_header("columns", "ESP loadparm test", "esptest" );
2 include("/scripting/forms.js");
5 <h1>Samba4 loadparm test</h1>
10 var f = FormObj("LoadparmTest", 2, 1);
11 f.element[0].label = "Share";
12 f.element[1].label = "Parameter";
17 function stringVar(v) {
20 if (type == "object") {
22 ret = ret + " " + v[val];
30 function showValue(name, v) {
31 write("parameter:" + name + "<br>\n");
32 write("Type is: " + typeof(v) + "<br>\n");
33 write("Value is: " + stringVar(v) + "<p>\n");
37 if (request['REQUEST_METHOD'] == "POST") {
38 /* if they cancelled then take them back to the list of tests */
39 if (form['submit'] == "Cancel") {
45 share = form['Share'];
46 name = form['Parameter'];
48 v = lp.get(share, name);
57 Here are some commonly used parameters:<p>
60 showValue("defined services", lp.services());
62 function showParameter(name) {
63 showValue(name, lp.get(name));
66 showParameter("server services");
67 showParameter("netbios name");
68 showParameter("security");
69 showParameter("workgroup");
70 showParameter("log level");
71 showParameter("server signing");
72 showParameter("interfaces");