summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c853ccc)
raw | patch | inline | side by side (parent: c853ccc)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Jan 2008 08:14:18 +0000 (08:14 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Jan 2008 08:14:18 +0000 (08:14 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8283 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/modules/ServerPackages.pm | patch | blob | history |
index e3bee1793155dd72a64d39f11c4f1de303720e15..a1432ad00cf087127b4d4d45cf5ace606e99aa09 100644 (file)
}
# Build LDAP connection
- my $ldap;
- $ldap= Net::LDAP->new($ldap_uri);
+ my $ldap = Net::LDAP->new($ldap_uri);
+ if( not defined $ldap ) {
+ &main::daemon_log("ERROR: cannot connect to ldap: $ldap_uri", 1);
+ return;
+ }
+
# Bind to a directory with dn and password
my $mesg= $ldap->bind($ldap_admin_dn, $ldap_admin_password);