From: rettenbe Date: Tue, 3 Jun 2008 06:58:48 +0000 (+0000) Subject: * gosa-si-server X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a8d023f96217e8d374f88d9953de3f96200aa405;p=gosa.git * gosa-si-server * under construction git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11158 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index b153660b8..e7ae82f0e 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -1330,7 +1330,7 @@ sub process_task { while( my ($hit_num, $hit) = each %{ $query_res } ) { my $host_name = $hit->{hostname}; my $host_key = $hit->{hostkey}; - $answer =~ s/\w+<\/target>/$host_name<\/target>/g; + $answer =~ s/\S+<\/target>/$host_name<\/target>/g; my $error = &send_msg_to_target($answer, $host_name, $host_key, $answer_header, $session_id); &update_jobdb_status_for_send_msgs($answer, $error); } diff --git a/gosa-si/tests/client.php b/gosa-si/tests/client.php index 49d8ed768..96a42a2fb 100755 --- a/gosa-si/tests/client.php +++ b/gosa-si/tests/client.php @@ -9,10 +9,10 @@ $zahl= 1; for($count = 1; $count <= $zahl; $count++) { - $sock = new Socket_Client("127.0.0.1","20081",TRUE,5); + #$sock = new Socket_Client("127.0.0.1","20081",TRUE,5); + #$sock->setEncryptionKey("secret-gosa-password"); + $sock = new Socket_Client("10.89.1.30","20081",TRUE,5); $sock->setEncryptionKey("secret-gosa-password"); - #$sock = new Socket_Client("10.3.67.111","20081",TRUE,5); - #$sock->setEncryptionKey("UldOjon9gra"); if($sock->connected()){ @@ -59,11 +59,12 @@ for($count = 1; $count <= $zahl; $count++) # trigger jobs at client - #$data = "
gosa_detect_hardware
10.89.1.31:20083 10.89.1.31:20081
"; + #$data = "
gosa_detect_hardware
10.89.1.31:20083 GOSA
"; #$data = "
gosa_new_key_for_client
00:01:6c:9d:b9:fa 10.89.1.31:20081
"; #$data = "
job_trigger_action_wake
00:01:6c:9d:b9:fa GOSA 19700101000000
"; #$data = "
gosa_trigger_action_faireboot
00:01:6c:9d:b9:fa GOSA
"; #$data = "
gosa_trigger_action_reboot
00:01:6c:9d:b9:fa GOSA
"; + $data = "
gosa_trigger_action_halt
00:01:6c:9d:b9:fa GOSA
"; #$data = "
job_trigger_action_reinstall
GOSA 00:01:6c:9d:b9:fa 00:01:6c:9d:b9:fa 19700101000000
"; #$data = "
job_trigger_action_instant_update
00:01:6c:9d:b9:fa GOSA 19700101000000
"; #$data = "
gosa_new_ping
00:01:6c:9d:b9:fa GOSA
"; @@ -106,7 +107,7 @@ for($count = 1; $count <= $zahl; $count++) #$data = "
gosa_krb5_modify_principal
00:01:6c:9d:b9:fa horst@WIRECARD.SYSGOSA666
"; #$data = "
gosa_query_fai_server
GOSA 10.89.1.131:20081
"; - $data = "
gosa_ping
00:01:6c:9d:aa:16 GOSA
"; + #$data = "
gosa_ping
00:01:6c:9d:aa:16 GOSA
"; #$data = "
gosa_ping
00:01:6c:9d:b9:fa GOSA
"; #$data = "
job_ping
GOSA 00:0c:29:02:e5:4d 00:0c:29:02:e5:4d29700101000000
";