From: rettenbe Date: Mon, 25 Feb 2008 12:00:46 +0000 (+0000) Subject: new functions for client messages: LOGIN, LOGOUT X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0ce75afca5357f685e6759f7c158d9d240df7bfe;p=gosa.git new functions for client messages: LOGIN, LOGOUT git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9103 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index e5ae6ae28..848f237cc 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -1090,29 +1090,6 @@ sub watch_for_new_jobs { $job_msg =~ s/<\/xml>$/$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); diff --git a/gosa-si/modules/SIPackages.pm b/gosa-si/modules/SIPackages.pm index 7812d63f6..06f310cf1 100644 --- a/gosa-si/modules/SIPackages.pm +++ b/gosa-si/modules/SIPackages.pm @@ -654,6 +654,7 @@ sub here_i_am { status=>'registered', hostkey=>$new_passwd, timestamp=>$act_timestamp, + login=>"nobody", } ); if ($res != 0) {