summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/scripting/libjs/provision.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/scripting/libjs/provision.js b/source4/scripting/libjs/provision.js
index 502583507b..f204bcc9cc 100644
--- a/source4/scripting/libjs/provision.js
+++ b/source4/scripting/libjs/provision.js
@@ -585,12 +585,12 @@ function provision(subobj, message, blank, paths, session_info, credentials, lda
var st = sys.stat(paths.smbconf);
if (st == undefined) {
var smbconfsuffix;
- if (subobj.ROLE == "domain controller") {
+ if (subobj.SERVERROLE == "domain controller") {
smbconfsuffix = "dc";
- } else if (subobj.ROLE == "member server") {
+ } else if (subobj.SERVERROLE == "member server") {
smbconfsuffix = "member";
} else {
- smbconfsuffix = subobj.ROLE;
+ smbconfsuffix = subobj.SERVERROLE;
}
message("Setting up " + paths.smbconf +"\n");
setup_file("provision.smb.conf." + smbconfsuffix, info.message, paths.smbconf, subobj);