Test only if SAML service is enabled (#2341)

v2.11
Christophe Maudoux 4 years ago
parent 5d56a88ff3
commit 5f29cf10ff
  1. 5
      lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf/Tests.pm

@ -18,7 +18,7 @@ our $VERSION = '2.0.11';
# - (1,message) : OK with a warning
# - (0,message) : NOK
# - (-1,message) : OK, but must be confirmed (ignored if confirm parameter is
# set
# set)
#
# Those subroutines can also modify configuration.
#
@ -434,9 +434,10 @@ sub tests {
},
samlSignatureUnsupportedAlg => sub {
return 1 unless $conf->{issuerDBSAMLActivation};
return 1
unless eval
'use Lasso; Lasso::check_version( 2, 5, 1, Lasso::Constants::CHECK_VERSION_NUMERIC) ? 0:1';
'use Lasso; Lasso::check_version( 2, 5, 1, Lasso::Constants::CHECK_VERSION_NUMERIC) ? 0 : 1';
my $allsha1 = 1;
undef $allsha1

Loading…
Cancel
Save