summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-01-23 04:40:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:22 -0500
commit82b6a5c9fcae38353bf24b0d9372f24c3c387924 (patch)
tree86dee192d566d13f5072aeee5d74150c0a055705 /source4
parent0ef2ef7a53e1f87cbe8490f0578a0104b15a3177 (diff)
downloadsamba-82b6a5c9fcae38353bf24b0d9372f24c3c387924.tar.gz
samba-82b6a5c9fcae38353bf24b0d9372f24c3c387924.tar.bz2
samba-82b6a5c9fcae38353bf24b0d9372f24c3c387924.zip
r13076: catch a easy to make error during vampire install
(This used to be commit 1c49ce8df0fd2150c68d0bf4162f1ef69ff3392a)
Diffstat (limited to 'source4')
-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;
}