Code

bugfix: gosa-si-server: if incoming target_address is an ip address, detect ip addres...
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 3 Jun 2008 10:12:08 +0000 (10:12 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 3 Jun 2008 10:12:08 +0000 (10:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11167 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-server
gosa-si/server/events/clMessages.pm

index 7a9ca4756e8c2a8b3cf55250dd4190e21ebe039d..7a652eb60fb5a4bd8c68b5c5a28af6d275c5dd4a 100755 (executable)
@@ -1069,7 +1069,7 @@ sub msg_to_decrypt {
         $target = @{$msg_hash->{'target'}}[0];
         $source = @{$msg_hash->{'source'}}[0];
         my ($target_ip, $target_port) = split(':', $target);
-               if ($target ne "GOSA") {
+               if ($target =~ /^\d+\.\d+\.\d+\.\d+:\d+$/) {
                        my $server_address = &get_local_ip_for_remote_ip($target_ip).":$server_port";
                }
 
index 7425bfbac4690a6e232317d12598f3c1f3e17e65..fc2ab4aabb5b843df8ca249bf557bf194b102805 100644 (file)
@@ -342,6 +342,11 @@ sub TASKBEGIN {
         # set fai_state to localboot
         &main::change_fai_state('localboot', \@{$msg_hash->{'macaddress'}}, $session_id);
 
+       # TASKBEGIN eq chboot
+       } elsif ($content eq 'chboot') {
+               # just ignor this client message
+               # do nothing
+
        # other TASKBEGIN msgs
     } else {
                # select processing jobs for host