Code

new functions for client messages: LOGIN, LOGOUT
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 25 Feb 2008 12:00:46 +0000 (12:00 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 25 Feb 2008 12:00:46 +0000 (12:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9103 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-server
gosa-si/modules/SIPackages.pm

index e5ae6ae283733a635b9b4398b4182f73866acd98..848f237cc7e040830c3085f845b8c84e25b987f8 100755 (executable)
@@ -1090,29 +1090,6 @@ sub watch_for_new_jobs {
         $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);
@@ -1181,7 +1158,7 @@ $job_db = GOSA::DBsqlite->new($job_queue_file_name);
 $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);
 
index 7812d63f6072697401fd2eac73e55dbad4e95a01..06f310cf1c5d386a396e3f40ac05e0e07abc5295 100644 (file)
@@ -654,6 +654,7 @@ sub here_i_am {
                                                 status=>'registered',
                                                 hostkey=>$new_passwd,
                                                 timestamp=>$act_timestamp,
+                                                login=>"nobody",
                                                 } );
 
     if ($res != 0)  {