summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 87ff219)
raw | patch | inline | side by side (parent: 87ff219)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 12 Mar 2008 11:07:36 +0000 (11:07 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 12 Mar 2008 11:07:36 +0000 (11:07 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9704 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/gosa-si-client | patch | blob | history |
diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client
index 75424cef3f940e9bd3984e1fed0177697daadb79..55e78782b4c3c5e458e7ac31e1017fca994fde7c 100755 (executable)
--- a/gosa-si/gosa-si-client
+++ b/gosa-si/gosa-si-client
}
}
-sub trigger_reregistering_process {
- $REGISTERED = 0;
-}
-
sub generic_file_reset {
my ( $heap, $wheel_id ) = @_[ HEAP, ARG0 ];
sub server_input {
my ($kernel, $heap, $input, $wheel) = @_[KERNEL, HEAP, ARG0, ARG1];
+ my $remote_ip = $heap->{'remote_ip'},
my $error = 0;
my $answer;
+
+ daemon_log("INFO: Incoming msg from '$remote_ip'", 5);
daemon_log("DEBUG: Incoming msg:\n$input\n", 8);
my ($msg, $msg_hash) = &check_key_and_xml_validity($input, $server_key);
if( (!$msg) || (!$msg_hash) ) {
daemon_log("WARNING: Deciphering of incoming msg failed", 3);
+ if($server_address =~ /$remote_ip/) {
+ # got a msg from gosa-si-server which can not be decrypted, may the secrete not up-to-date
+ # cause a reregistering with a new secrete handshake
+ daemon_log("WARNING: Message from gosa-si-server could not be understood, cause reregistering at server", 3);
+ $REGISTERED = 0;
+ $kernel->yield('register_at_gosa_si_server');
+ }
$error++;
}