Manage error when LDAP connection is no available in LDAP configuration backend (#607)
This commit is contained in:
parent
e33ee53afc
commit
a724dc783f
|
@ -11,7 +11,7 @@ use Lemonldap::NG::Common::Conf::Constants; #inherits
|
|||
use Lemonldap::NG::Common::Conf::Serializer;
|
||||
use Encode;
|
||||
|
||||
our $VERSION = '1.2.4';
|
||||
our $VERSION = '1.2.5';
|
||||
|
||||
BEGIN {
|
||||
*Lemonldap::NG::Common::Conf::ldap = \&ldap;
|
||||
|
@ -92,6 +92,11 @@ sub ldap {
|
|||
( $self->{ldapPort} ? ( port => $self->{ldapPort} ) : () ),
|
||||
);
|
||||
|
||||
unless ($ldap) {
|
||||
$Lemonldap::NG::Common::Conf::msg .= "$@\n";
|
||||
return;
|
||||
}
|
||||
|
||||
# Start TLS if needed
|
||||
if ($useTls) {
|
||||
my %h = split( /[&=]/, $tlsParam );
|
||||
|
|
Loading…
Reference in New Issue
Block a user