function administrator_update(){ $samba=new samba(); $admin_password=$samba->GetAdminPassword("administrator"); if($admin_password==null){echo "No password set\n";return;} $samba->EditAdministrator("administrator",$admin_password); echo "updating administrator done...\n"; }
function DomainAdmin_Save() { $password = $_GET["domain-admin-save"]; $samba = new samba(); $samba->EditAdministrator('administrator', $password); $sock = new sockets(); $sock->SET_INFO("DomainAdministratorEdited", 1); }