Samba4 loadparm test

Share:
Parameter:

<% function stringVar(v) { var type = typeof(v); var ret = ""; if (type == "object") { for (val in v) { ret = ret + " " + v[val]; } } else { ret = ret + v; } return ret; } function showValue(name, v) { write("parameter:" + name + "
\n"); write("Type is: " + typeof(v) + "
\n"); write("Value is: " + stringVar(v) + "

\n"); } if (request['REQUEST_METHOD'] == "POST") { /* if they cancelled then take them back to the list of tests */ if (form['submit'] == "Cancel") { redirect("index.esp"); } var v; share = form['Share']; name = form['Name']; if (share && name) { v = lpGet(share, name); } else if (name) { v = lpGet(name); } showValue(name, v); } %> Here are some commonly used parameters:

<% showValue("defined services", lpServices()); function showParameter(name) { showValue(name, lpGet(name)); } showParameter("server services"); showParameter("netbios name"); showParameter("security"); showParameter("workgroup"); showParameter("log level"); showParameter("server signing"); showParameter("interfaces"); %>