Commit 50540090 authored by Clément OUDOT's avatar Clément OUDOT

Do not check syntax of Multi authentication parameter in Manager, as it can be...

Do not check syntax of Multi authentication parameter in Manager, as it can be very complex (#LEMONLDAP-298)

git-svn-id: svn://svn.forge.objectweb.org/svnroot/lemonldap/branches/lemonldap-ng_version_1_0-bugfixes@2020 1dbb9719-a921-0410-b57f-c3a383c2c641
parent 79cda3ef
......@@ -9,7 +9,7 @@ use strict;
use Lemonldap::NG::Common::Conf::SAML::Metadata;
use Lemonldap::NG::Common::Regexp;
our $VERSION = '1.0.5';
our $VERSION = '1.0.6';
## @method protected hashref cstruct(hashref h,string k)
# Merge $h with the structure produced with $k and return it.
......@@ -1185,7 +1185,15 @@ sub testStruct {
mailConfirmSubject => $testNotDefined,
mailConfirmBody => $testNotDefined,
authentication => {
test => qr/^[a-zA-Z]+(?:\s[\w\s:;]+)?$/,
test => sub {
my $e = shift;
# Do not check syntax for Multi
return 1 if ( $e =~ /^multi/i );
# Else, check the authentication module is valid
return ( $e =~ qr/^[a-zA-Z]+$/ );
},
msgFail => 'Bad module name',
},
cda => $boolean,
......
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