From: rettenbe Date: Thu, 29 May 2008 09:51:41 +0000 (+0000) Subject: * gosa-si-server-nobus X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5e3764c723c327eb55969d7f6ccc902afb3f3793;p=gosa.git * gosa-si-server-nobus * under construction git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11101 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/modules/ServerPackages.pm b/gosa-si/modules/ServerPackages.pm index 820ccc258..7ce04da86 100644 --- a/gosa-si/modules/ServerPackages.pm +++ b/gosa-si/modules/ServerPackages.pm @@ -8,6 +8,7 @@ use Exporter; use strict; use warnings; use GOSA::GosaSupportDaemon; +use Data::Dumper; #use IO::Socket::INET; #use XML::Simple; @@ -55,7 +56,7 @@ sub process_incoming_msg { my $sql_events; my @msg_l; - my @out_msg_l; + my @out_msg_l = ( 'nohandler' ); &main::daemon_log("$session_id DEBUG: ServerPackages: msg to process '$header'", 7); if( exists $event_hash->{$header} ) { @@ -68,7 +69,10 @@ sub process_incoming_msg { $sql_events = "SELECT * FROM $main::known_clients_tn WHERE ( (macaddress LIKE '$target') OR (hostname='$target') )"; my $res = $main::known_clients_db->select_dbentry( $sql_events ); my $l = keys(%$res); - + + +# TODO +# $l == 1, knownclienterror wird eigentlich nicht gebraucht. hier soll nohandler anspringen # set error if no or more than 1 hits are found for sql query if ( $l != 1) { @out_msg_l = ('knownclienterror'); diff --git a/gosa-si/server/events/server_server_com.pm b/gosa-si/server/events/server_server_com.pm index 81cc4c0e5..68aa78702 100644 --- a/gosa-si/server/events/server_server_com.pm +++ b/gosa-si/server/events/server_server_com.pm @@ -86,7 +86,7 @@ sub new_server { my $out_msg = &build_msg('confirm_new_server', $main::server_address, $source, \%data); my $error = &main::send_msg_to_target($out_msg, $source, $main::ServerPackages_key, 'confirm_new_server', $session_id); - + return; } @@ -99,7 +99,7 @@ sub confirm_new_server { my $sql = "UPDATE $main::known_server_tn SET status='$header', hostkey='$key' WHERE hostname='$source'"; my $res = $main::known_server_db->update_dbentry($sql); - + return; }