diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server
index a24275149b97b2f3012cc274e115a8bd88fb7012..848f237cc7e040830c3085f845b8c84e25b987f8 100755 (executable)
--- a/gosa-si/gosa-si-server
+++ b/gosa-si/gosa-si-server
use Getopt::Long;
use Config::IniFiles;
use POSIX;
use Getopt::Long;
use Config::IniFiles;
use POSIX;
+use utf8;
use Fcntl;
use IO::Socket::INET;
use Fcntl;
use IO::Socket::INET;
$job_msg =~ s/<\/xml>$/<jobdb_id>$jobdb_id<\/jobdb_id><\/xml>/;
my $func_error = &send_msg_to_target($job_msg, $server_address, $GosaPackages_key, $header);
$job_msg =~ s/<\/xml>$/<jobdb_id>$jobdb_id<\/jobdb_id><\/xml>/;
my $func_error = &send_msg_to_target($job_msg, $server_address, $GosaPackages_key, $header);
-
-# if ( $func_error ) {
-#print STDERR "========================================\n";
-#print STDERR "func_error: $func_error\n";
-#
-# my $sql_statement = "UPDATE $job_queue_table_name ".
-# "SET status='error', targettag='$target' ".
-# "WHERE id='$jobdb_id'";
-#print STDERR "sql: $sql_statement\n";
-# my $res = $job_db->update_dbentry($sql_statement);
-#print STDERR "res: ".Dumper($res);
-#
-# } else {
-#print STDERR "========================================\n";
-#print STDERR "func_error: $func_error\n";
-#
-# my $sql_statement = "UPDATE $job_queue_table_name ".
-# "SET status='done', targettag='$target' ".
-# "WHERE id='$jobdb_id'";
-#print STDERR "sql: $sql_statement\n";
-# my $res = $job_db->update_dbentry($sql_statement);
-#print STDERR "res: ".Dumper($res);
-# }
}
$kernel->delay_set('watch_for_new_jobs',3);
}
$kernel->delay_set('watch_for_new_jobs',3);
$job_db->create_table('jobs', \@job_col_names);
# connect to known_clients_db
$job_db->create_table('jobs', \@job_col_names);
# connect to known_clients_db
-my @clients_col_names = ('hostname', 'status', 'hostkey', 'timestamp', 'macaddress', 'events');
+my @clients_col_names = ('hostname', 'status', 'hostkey', 'timestamp', 'macaddress', 'events', 'login');
$known_clients_db = GOSA::DBsqlite->new($known_clients_file_name);
$known_clients_db->create_table('known_clients', \@clients_col_names);
$known_clients_db = GOSA::DBsqlite->new($known_clients_file_name);
$known_clients_db->create_table('known_clients', \@clients_col_names);