summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dfb59c8)
raw | patch | inline | side by side (parent: dfb59c8)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 1 Feb 2008 09:02:40 +0000 (09:02 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 1 Feb 2008 09:02:40 +0000 (09:02 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8710 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/modules/ArpHandler.pm | patch | blob | history |
index 098a5bad94ac9e106b0f475a217d081aa8539cb6..bb2809fdb9e954beaf3c5eeff3be70a327cb01f2 100644 (file)
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);
}
}