r7073: added some simple example scripts for use with smbscript
[samba.git] / testprogs / ejs / loadparm.js
1 /*
2         demonstrate access to loadparm functions from ejs
3 */      
4
5 print("defined services: ");
6 printVars(lpServices());
7
8 function showParameter(name) {
9          print(name + ": ");
10          printVars(lpGet(name));
11 }
12
13 showParameter("server services");
14 showParameter("netbios name");
15 showParameter("security");
16 showParameter("workgroup");
17 showParameter("log level");
18 showParameter("server signing");
19 showParameter("interfaces");