Manage error when LDAP connection is no available in LDAP configuration backend (#607)

This commit is contained in:
Clément Oudot 2013-08-20 14:17:59 +00:00
parent e33ee53afc
commit a724dc783f

View File

@ -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 );