Commit e001d4f8 authored by Xavier Guimard's avatar Xavier Guimard

Don't populate ->error if LDAP connection fails

Fixes: #1496
parent 9beaac9c
...@@ -27,7 +27,7 @@ sub newLdap { ...@@ -27,7 +27,7 @@ sub newLdap {
) )
) )
{ {
$self->error("LDAP initialization error: $@"); $self->logger->error("LDAP initialization error: $@");
return undef; return undef;
} }
...@@ -90,7 +90,8 @@ sub _buildFilter { ...@@ -90,7 +90,8 @@ sub _buildFilter {
sub init { sub init {
my ($self) = @_; my ($self) = @_;
$self->ldap and $self->filter; $self->ldap;
$self->filter;
} }
# RUNNING METHODS # RUNNING METHODS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment