summaryrefslogtreecommitdiff
path: root/source4/scripting/libjs
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/libjs')
-rw-r--r--source4/scripting/libjs/provision.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/scripting/libjs/provision.js b/source4/scripting/libjs/provision.js
index ef6fe31285..d05796001e 100644
--- a/source4/scripting/libjs/provision.js
+++ b/source4/scripting/libjs/provision.js
@@ -551,6 +551,11 @@ function provision_validate(subobj, message)
return false;
}
+ if (lp.get("server role") == "pdc") {
+ message("server role must not be set to 'pdc' during the install\n");
+ return false;
+ }
+
return true;
}