summaryrefslogtreecommitdiff
path: root/testprogs/ejs/loadparm.js
diff options
context:
space:
mode:
Diffstat (limited to 'testprogs/ejs/loadparm.js')
-rw-r--r--testprogs/ejs/loadparm.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/testprogs/ejs/loadparm.js b/testprogs/ejs/loadparm.js
new file mode 100644
index 0000000000..fdeaed9d34
--- /dev/null
+++ b/testprogs/ejs/loadparm.js
@@ -0,0 +1,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");