r24858: Make the 'vampire' code work again - clearly nobody uses this...
authorAndrew Bartlett <abartlet@samba.org>
Fri, 31 Aug 2007 21:13:18 +0000 (23:13 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 02:32:21 +0000 (03:32 +0100)
Andrew Bartlett
(This used to be commit 6961ab9291d719fa556d116b60d186cf1110c249)

webapps/install/vampire.esp

index e0c895404c4907217810244ec0db6d16a49b7d49..d5b7a73c538c6df24ba4cf223f0b68a8c3e0a1bc 100644 (file)
@@ -51,7 +51,11 @@ if (session.authinfo.user_class == "ADMINISTRATOR"
        }
        
        if (form['submit'] == "Migrate") {
+               /* overcome an initially blank smb.conf */
                lp.set("realm", subobj.REALM);
+               lp.set("workgroup", subobj.DOMAIN);
+               lp.reload();
+
                if (subobj.ADMINPASS == "") {
                        write("<h3>We need the administrator password for the " + subobj.DOMAIN + " domain to proceed.  Please try again.</h3>");
                        f.display();