From: janw Date: Fri, 1 Feb 2008 09:02:40 +0000 (+0000) Subject: Fixed bug. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=445f24e153eb2f68b53862b570d047da9d5710a7;p=gosa.git Fixed bug. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8710 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/modules/ArpHandler.pm b/gosa-si/modules/ArpHandler.pm index 098a5bad9..bb2809fdb 100644 --- a/gosa-si/modules/ArpHandler.pm +++ b/gosa-si/modules/ArpHandler.pm @@ -188,13 +188,14 @@ sub got_packet { my $ldap_result=&get_host_from_ldap($packet->{source_haddr}); if(exists($ldap_result->{dn})) { $hosts_database->{$packet->{source_haddr}}=$ldap_result; + $hosts_database->{$packet->{source_haddr}}->{dnsname}= $dnsname; if(!exists($ldap_result->{ipHostNumber})) { $hosts_database->{$packet->{source_haddr}}->{ipHostNumber}=$packet->{source_ipaddr}; } else { if(!($ldap_result->{ipHostNumber} eq $packet->{source_ipaddr})) { &main::daemon_log( "Current IP Address ".$packet->{source_ipaddr}. - " of host ".$ldap_result->{dnsname}. + " of host ".$hosts_database->{$packet->{source_haddr}}->{dnsname}. " differs from LDAP (".$ldap_result->{ipHostNumber}.")", 4); } }