r13076: catch a easy to make error during vampire install
authorAndrew Tridgell <tridge@samba.org>
Mon, 23 Jan 2006 04:40:57 +0000 (04:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:51:22 +0000 (13:51 -0500)
(This used to be commit 1c49ce8df0fd2150c68d0bf4162f1ef69ff3392a)

source4/scripting/libjs/provision.js

index ef6fe3128560df505d517fada3e88f230f288f3b..d05796001e919661d4b8e581fdc7c97cc4cb270a 100644 (file)
@@ -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;
 }