Code

Fixed LDAP Connection Check.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 30 Jan 2008 08:56:37 +0000 (08:56 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 30 Jan 2008 08:56:37 +0000 (08:56 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8648 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/ArpHandler.pm

index be47d61400b9fdf05cb67725313445a27df369ed..d0cba19248af5299726fe1c84db42776841d8d71 100644 (file)
@@ -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