summaryrefslogtreecommitdiff
path: root/testprogs/ejs/loadparm.js
blob: f56ca9f7fccc6dc9aaaa43a292527172b594fcf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
	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");