summaryrefslogtreecommitdiff
path: root/testprogs/ejs/loadparm.js
blob: 6c2a80bb73ac996f6e8cada8a009b5b83f5400c7 (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
/*
	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");