summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7804e01)
raw | patch | inline | side by side (parent: 7804e01)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 29 May 2008 09:51:41 +0000 (09:51 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 29 May 2008 09:51:41 +0000 (09:51 +0000) |
* under construction
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11101 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11101 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/modules/ServerPackages.pm | patch | blob | history | |
gosa-si/server/events/server_server_com.pm | patch | blob | history |
index 820ccc2586f790b0791625465c630a745b53d1e2..7ce04da8678258e27b2826f53a3f8e3d3c491d48 100644 (file)
use strict;
use warnings;
use GOSA::GosaSupportDaemon;
+use Data::Dumper;
#use IO::Socket::INET;
#use XML::Simple;
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} ) {
$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 81cc4c0e5b0c596fe8acda61fc1cc5a260311004..68aa78702ed2efa57a751c38b65874034b0ace14 100644 (file)
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;
}
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;
}