summaryrefslogtreecommitdiff
path: root/swat
diff options
context:
space:
mode:
Diffstat (limited to 'swat')
-rw-r--r--swat/esptest/ldb.esp3
-rw-r--r--swat/esptest/loadparm.esp11
2 files changed, 8 insertions, 6 deletions
diff --git a/swat/esptest/ldb.esp b/swat/esptest/ldb.esp
index b0a2db8dad..20b95b1590 100644
--- a/swat/esptest/ldb.esp
+++ b/swat/esptest/ldb.esp
@@ -5,7 +5,8 @@
<h3>An attribute constrained search</h3>
<%
-var dbfile = lpGet("sam database");
+var lp = loadparm_init();
+var dbfile = lp.get("sam database");
var attrs = new Array("name", "dnsDomain", "objectSid", "dn");
var ldb = ldb_init();
var ok = ldb.connect(dbfile);
diff --git a/swat/esptest/loadparm.esp b/swat/esptest/loadparm.esp
index 9e6de480e2..9ea83b77bc 100644
--- a/swat/esptest/loadparm.esp
+++ b/swat/esptest/loadparm.esp
@@ -3,6 +3,8 @@
<h1>Samba4 loadparm test</h1>
<%
+lp = loadparm_init();
+
var f = FormObj("LoadparmTest", 2, 1);
f.element[0].label = "Share";
f.element[1].label = "Parameter";
@@ -41,9 +43,9 @@ if (request['REQUEST_METHOD'] == "POST") {
share = form['Share'];
name = form['Parameter'];
if (share && name) {
- v = lpGet(share, name);
+ v = lp.get(share, name);
} else if (name) {
- v = lpGet(name);
+ v = lp.get(name);
}
showValue(name, v);
@@ -53,11 +55,10 @@ if (request['REQUEST_METHOD'] == "POST") {
Here are some commonly used parameters:<p>
<%
-
-showValue("defined services", lpServices());
+showValue("defined services", lp.services());
function showParameter(name) {
- showValue(name, lpGet(name));
+ showValue(name, lp.get(name));
}
showParameter("server services");