1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/testprogs/ejs/loadparm.js
Andrew Tridgell eba9bc5eaa r7076: added demos of using ARGV[]
(This used to be commit 9679f20272)
2007-10-10 13:17:12 -05:00

25 lines
456 B
JavaScript

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