#!/usr/bin/perl
# tta_delhostsuser.cgi
# Delete Hosts Group Users from Services with Tarantella
# STTA Rev. 1.3 Copyright (c) 2001-2004 Jesús Pérez Lorenzo  --- license GNU GPL 
# stta: (@#) 1.31051043346- [2004_01_29_102036]

 require './stta-lib.pl';
&foreign_require("proc", "proc-lib.pl");
do "ldap-lib.pl";
&ReadParse();

 $hostsusername=$in{hostsusername};
 &headerstta($text{'index_delhostsuser'}, "", "delhostsuser",undef,1,0,"$text{'headpage_right'}"."$text{'head_logout'}",undef,undef,"$text{head_below}" ); 
 print "<hr><p>\n"; 
 print "<table width=100% border>\n";
 print "<tr $tb> <td><font color='$revtext'><b>$text{'titidx_delhostsuser'} $hostusername </b></td> </tr>\n";
 print "<tr $cb> <td><table width=100%>\n";
 print "<center>\n";

if ($hostsusername ) {
    print "<tr></tr><tr></tr>\n";
    print "</pre><tr><p><b>$text{'user_delete'}... Tarantella </b></tr>\n";
    %h_hostsuser=&list_hostsuser();
    &out_objslist( "delete", "delhostsuser.cgi", "hostsuser", "hostsuser_list", $hostsusername, "", \%h_hostsuser );
    print "</tr></td></pre>\n";
 }
 print "<tr><tr></table></table><hr><p>\n";
 &footer($config{'back_return'},$text{'index'});
 print "<p><p><p>\n";
 do "footer.pl";
 exit;
