1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/testprogs/ejs/loadparm.js

26 lines
474 B
JavaScript
Raw Normal View History

/*
demonstrate access to loadparm functions from ejs
*/
loadparm_init(local);
function showParameter(name) {
print(name + ": ");
printVars(get(name));
}
for (v in ARGV) {
showParameter(ARGV[v]);
}
print("defined services: ");
printVars(services());
showParameter("server services");
showParameter("netbios name");
showParameter("security");
showParameter("workgroup");
showParameter("log level");
showParameter("server signing");
showParameter("interfaces");