From: rettenbe Date: Mon, 29 Jun 2009 12:31:56 +0000 (+0000) Subject: eliminate 'undefined value...' log message while gosa-si and gosa have a different... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e8ad1388592dd2c3ea63783c58bf392e6f1558e2;p=gosa.git eliminate 'undefined value...' log message while gosa-si and gosa have a different encrytion password git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13818 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index 46d9fbbf2..1d59cd75e 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -1140,7 +1140,15 @@ sub msg_to_decrypt { } # msg is from a gosa-si-client if(( !$msg ) || ( !$msg_hash ) || ( !$module )){ - ($msg, $msg_hash, $module) = &input_from_known_client($next_msg, $msg_source, $session_id); + if (not defined $msg_source) + { + # Only needed, to be compatible with older gosa-si-server versions + ($msg, $msg_hash, $module) = &input_from_known_client($next_msg, $heap->{'remote_ip'}, $session_id); + } + else + { + ($msg, $msg_hash, $module) = &input_from_known_client($next_msg, $msg_source, $session_id); + } } # an error occurred if(( !$msg ) || ( !$msg_hash ) || ( !$module )){ diff --git a/gosa-si/tests/client.php b/gosa-si/tests/client.php index 9b9bdcfe2..a1134eeaf 100755 --- a/gosa-si/tests/client.php +++ b/gosa-si/tests/client.php @@ -18,8 +18,8 @@ for($count = 1; $count <= $zahl; $count++) ############################## # periodical jobs - $data = "
job_trigger_action_reboot
GOSA00:0c:29:4c:4b:0c00:0c:29:4c:4b:0c20090622000000minutes
"; - $data = "
job_trigger_action_reboot
GOSA00:0c:29:4c:4b:0c2009062613500000:0c:29:4c:4b:0cminutes5
"; + $data = "
job_trigger_action_reboot
GOSA00:0c:29:4c:4b:0c00:0c:29:4c:4b:0c20090629000000weeks2
"; + #$data = "
job_trigger_action_reboot
GOSA00:0c:29:4c:4b:0c2009062613500000:0c:29:4c:4b:0cminutes5
"; /* Prepare a hunge bunch of data to be send */ # jobdb add #$data = "
gosa_network_completition
GOSAGOSAws-muc-2
";