summaryrefslogtreecommitdiff
path: root/source4/scripting/libjs
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/libjs')
-rw-r--r--source4/scripting/libjs/provision.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/scripting/libjs/provision.js b/source4/scripting/libjs/provision.js
index 03360654c7..6d4e4a3bc0 100644
--- a/source4/scripting/libjs/provision.js
+++ b/source4/scripting/libjs/provision.js
@@ -114,6 +114,8 @@ function hostname()
function setup_ldb(ldif, dbname, subobj)
{
var extra = "";
+ var ldb = ldb_init();
+
if (arguments.length == 4) {
extra = arguments[3];
}
@@ -127,7 +129,7 @@ function setup_ldb(ldif, dbname, subobj)
data = data + extra;
data = substitute_var(data, subobj);
- ok = ldbAdd(db, data);
+ ok = ldb.add(db, data);
assert(ok);
}