From eeb77c16a9a3d91707f3015ae3484f873b75c305 Mon Sep 17 00:00:00 2001 From: rettenbe Date: Fri, 7 Nov 2008 08:26:08 +0000 Subject: [PATCH] * fixes opsi problem, callobject get_netboot_products does not come back and so no message is send to questioning gosa git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12957 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/server/events/opsi_com.pm | 3 +-- gosa-si/tests/client.php | 12 +++++------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/gosa-si/server/events/opsi_com.pm b/gosa-si/server/events/opsi_com.pm index 989a88e15..957b7e67f 100644 --- a/gosa-si/server/events/opsi_com.pm +++ b/gosa-si/server/events/opsi_com.pm @@ -426,12 +426,11 @@ sub opsi_get_netboot_products { params => [ ], id => 1, }; - &main::daemon_log("$session_id DEBUG: send callobj to opsi_client: ".&opsi_callobj2string($callobj), 7); &main::daemon_log("$session_id DEBUG: opsi_url $main::opsi_url", 7); &main::daemon_log("$session_id DEBUG: waiting for answer from opsi_client!", 7); my $res = $main::opsi_client->call($main::opsi_url, $callobj); - &main::daemon_log("$session_id DEBUG: get answer from opsi_client with number of entries: ".length(@$res), 7); + &main::daemon_log("$session_id DEBUG: get answer from opsi_client", 7); my %r = (); for (@{$res->result}) { $r{$_} = 1 } diff --git a/gosa-si/tests/client.php b/gosa-si/tests/client.php index 39b57d86f..8b879a2a0 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->setEncryptionKey("secret-gosa-password"); - $sock = new Socket_Client("10.89.1.42","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.42","20081",TRUE,5); + #$sock->setEncryptionKey("secret-gosa-password"); if($sock->connected()){ @@ -84,7 +84,7 @@ for($count = 1; $count <= $zahl; $count++) #$data = "
gosa_send_user_msg
10.89.1.30:20081 GOSA ".base64_encode("eine wichtige nachricht")." admin polle harald 20130101235959 ".base64_encode("kaffeepause")."
"; #$data = "
gosa_send_user_msg
10.89.1.30:20081 GOSA ".base64_encode("eine wichtige nachricht")." admin rettenbe 20130101235959 ".base64_encode("kaffeepause")."
"; - $data = "
gosa_set_last_system
10.89.1.31:20082 GOSA 00:01:6c:9d:b9:fa 1.2.3.4 20081212000000
"; + #$data = "
gosa_set_last_system
10.89.1.31:20082 GOSA 00:01:6c:9d:b9:fa 1.2.3.4 20081212000000
"; ################## # recreate fai dbs @@ -124,7 +124,7 @@ for($count = 1; $count <= $zahl; $count++) # Opsi testing # Get all netboot products - #$data = "
gosa_opsi_get_netboot_products
GOSA GOSA
"; + $data = "
gosa_opsi_get_netboot_products
GOSA GOSA
"; # Get netboot product for specific host #$data = "
gosa_opsi_get_netboot_products
GOSA GOSA linux-cl-2.intranet.gonicus.de
"; @@ -214,8 +214,6 @@ for($count = 1; $count <= $zahl; $count++) # SYSLOG reload #$data = "
gosa_trigger_reload_syslog_config
GOSA GOSA 00:01:6c:9d:b9:fa
"; - $data ="
gosa_krb5_get_policy
6charsGOSA00:01:6c:9d:aa:16
"; - $sock->write($data); $answer = "nothing"; $answer = $sock->read(); -- 2.30.2