summaryrefslogtreecommitdiffstats
path: root/testprogs/ejs/loadparm.js
blob: fdeaed9d348b2b55b693aedff84e4e328071be9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
	demonstrate access to loadparm functions from ejs
*/	

print("defined services: ");
printVars(lpServices());

function showParameter(name) {
	 print(name + ": ");
	 printVars(lpGet(name));
}

showParameter("server services");
showParameter("netbios name");
showParameter("security");
showParameter("workgroup");
showParameter("log level");
showParameter("server signing");
showParameter("interfaces");