summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4957ac6)
raw | patch | inline | side by side (parent: 4957ac6)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 30 Jan 2008 08:56:37 +0000 (08:56 +0000) | ||
committer | janw <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 | patch | blob | history |
index be47d61400b9fdf05cb67725313445a27df369ed..d0cba19248af5299726fe1c84db42776841d8d71 100644 (file)
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