summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9a607b6)
raw | patch | inline | side by side (parent: 9a607b6)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 2 Sep 2008 13:31:13 +0000 (13:31 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 2 Sep 2008 13:31:13 +0000 (13:31 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12346 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/server/events/gosaTriggered.pm | patch | blob | history | |
gosa-si/tests/client.php | patch | blob | history |
index 1e3b3c4ead9250079e838ac5d71fca1516f12562..e18e0b4a7d8e105e5724511d928bf7c41d238ce6 100644 (file)
# Check localhost for module_name
if (exists @{$main::known_modules->{'GosaPackages'}}[2]->{$module_name}) {
- my ($remote_ip, $remote_port) = split(/:/, $source);
- my $local_mac = &get_local_mac_for_remote_ip($remote_ip);
+ my ($local_ip, $local_port) = split(/:/, $target);
+ my $network_interface= &get_interface_for_ip($local_ip);
+ my $local_mac = &get_mac_for_interface($network_interface);
&add_content2xml_hash($out_hash, "host", $local_mac);
}
index cc509f5062547b9c9a02614aef0e1b934981695d..b9ebc4264419761358cf4b79553f051d8bd971a9 100755 (executable)
--- a/gosa-si/tests/client.php
+++ b/gosa-si/tests/client.php
#$data = "<xml> <header>gosa_get_client_for_login_usr</header> <target>GOSA</target> <source>GOSA</source> <usr>harald</usr></xml>";
# List all si-server providing opsi
- $data = "<xml> <header>gosa_get_hosts_with_module</header> <source>GOSA</source> <target>GOSA</target> <module_name>opsi_com</module_name> </xml>";
+ $data = "<xml> <header>gosa_get_hosts_with_module</header> <source>GOSA</source> <target>10.89.1.31:20081</target> <module_name>opsi_com</module_name> </xml>";
##################
# recreate fai dbs
#########################
# Mailqueue communication
- #$data = "<xml> <header>gosa_mailqueue_query</header> <source>GOSA</source> <target>00:01:6c:9d:b9:fa</target> </xml>";
+ $data = "<xml> <header>gosa_mailqueue_query</header> <source>GOSA</source> <target>00:01:6c:9d:b9:fa</target> </xml>";
# multiple xml tags msg_id are allowed
#$data = "<xml> <header>gosa_mailqueue_hold</header> <source>GOSA</source> <target>00:01:6c:9d:b9:fa</target> <msg_id>99C8ABEF23</msg_id> </xml>";