From 0e827de4c2376bf55627bdf73a4d0f3517a79121 Mon Sep 17 00:00:00 2001 From: janw Date: Wed, 30 Jan 2008 08:56:37 +0000 Subject: [PATCH] Fixed LDAP Connection Check. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8648 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/modules/ArpHandler.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 -- 2.30.2