diff options
Diffstat (limited to 'swat')
-rw-r--r-- | swat/install/vampire.esp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/swat/install/vampire.esp b/swat/install/vampire.esp index db317e2635..437cbda32c 100644 --- a/swat/install/vampire.esp +++ b/swat/install/vampire.esp @@ -54,6 +54,8 @@ if (form['submit'] == "Migrate") { f.display(); } else if (!provision_validate(subobj, writefln)) { f.display(); + } else if (strupper(lp.get("server role")) == "PDC") { + writefln("You need to set 'server role' to 'member server' before starting the migration process"); } else { var creds = credentials_init(); creds.set_username(form.ADMIN); @@ -61,11 +63,16 @@ if (form['submit'] == "Migrate") { creds.set_domain(form.DOMAIN); creds.set_realm(form.REALM); + var info = new Object(); + info.message = writefln; + var paths = provision_default_paths(subobj); + var session_info = session.authinfo.session_info; + var credentials = session.authinfo.credentials; /* Setup a basic database structure, but don't setup any users */ if (!provision(subobj, writefln, true, paths, - session.authinfo.session_info, session.authinfo.credentials)) { + session_info, credentials)) { writefln("Provision failed!"); /* Join domain */ @@ -79,6 +86,8 @@ if (form['submit'] == "Migrate") { } else if (!provision_dns(subobj, writefln, paths, session.authinfo.session_info, session.authinfo.credentials)) { writefln("DNS Provision failed!"); + } else if (!setup_name_mappings(info, subobj, session_info, credentials)) { + writefln("Setup of name mappings failed!"); } else { var zonepath = paths.dns; %> |