From: janw Date: Wed, 30 Jan 2008 08:56:37 +0000 (+0000) Subject: Fixed LDAP Connection Check. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0e827de4c2376bf55627bdf73a4d0f3517a79121;p=gosa.git Fixed LDAP Connection Check. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8648 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/modules/ArpHandler.pm b/gosa-si/modules/ArpHandler.pm index be47d6140..d0cba1924 100644 --- a/gosa-si/modules/ArpHandler.pm +++ b/gosa-si/modules/ArpHandler.pm @@ -50,11 +50,8 @@ sub get_module_info { eval { $ldap = Net::LDAP->new("ldap.intranet.gonicus.de"); }; - if ($@) { + if (!$ldap) { &main::daemon_log("Could not connect to LDAP Server!\n$@", 1); - } else { - &main::daemon_log("Could not connect to LDAP Server!\n$@", 1); - } # When interface is not configured (or 'all'), start arpwatch on all possible interfaces