% page_header("columns", "Upgrade", "install");
/* frontend to Samba3 upgrade.
Based on provision.esp
(C) Jelmer Vernooij 2005
Published under the GNU GPL
*/
include("/scripting/forms.js");
libinclude("base.js");
libinclude("provision.js");
libinclude("upgrade.js");
%>
Import from Samba3
<%
if (form['submit'] == "Cancel") {
redirect("/");
}
if (form['submit'] == "Import") {
var samba3 = samba3_read(form['LIBDIR'], form['SMBCONF']);
var subobj = upgrade_provision(samba3);
var f = FormObj("Import from Samba3", 0, 2);
f.add("REALM", "Realm");
f.add("DOMAIN", "Domain Name");
f.add("HOSTNAME", "Hostname");
f.add("ADMINPASS", "Administrator Password", "password");
f.add("CONFIRM", "Confirm Password", "password");
f.add("DOMAINSID", "Domain SID");
f.add("HOSTGUID", "Host GUID");
f.add("BASEDN", "Base DN");
f.add("HOSTIP", "Host IP");
f.add("DEFAULTSITE", "Default Site");
for (i=0;iWarning: This will erase your current configuration!');
f.display();
}
%>
<% page_footer(); %>