From: janw Date: Tue, 1 Apr 2008 06:23:43 +0000 (+0000) Subject: Removed unused LDAP references. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1292f3cfce3ee6facfbc0769234282b2b426b765;p=gosa.git Removed unused LDAP references. closes #386. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10098 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/modules/ArpHandler.pm b/gosa-si/modules/ArpHandler.pm index 3bc46cfd0..ded762b9e 100644 --- a/gosa-si/modules/ArpHandler.pm +++ b/gosa-si/modules/ArpHandler.pm @@ -94,14 +94,7 @@ sub get_module_info { &main::daemon_log("Loading OUI cache file suceeded!", 6); } } - my $ldap_handle = &main::get_ldap_handle(); - if(defined($ldap_uri) && length($ldap_uri)>0) { - if (!$ldap_handle) { - &main::daemon_log("Could not connect to LDAP Server at $ldap_uri!\n$@", 1); - } - } else { - $ldap_handle= undef; - } + my $ldap_handle = &main::get_ldap_handle(); # When interface is not configured (or 'all'), start arpwatch on all possible interfaces if ((!defined($arp_interface)) || $arp_interface eq 'all') {