1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/testprogs/ejs/loadparm.js
Andrew Tridgell 86d628a292 r8639: moved loadparm calls into an ejs object
(This used to be commit 2dc493eea6)
2007-10-10 13:29:48 -05:00

26 lines
474 B
JavaScript

/*
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");