|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
# This file is generated by Lemonldap::NG::Manager::Build. Don't modify it by hand |
|
|
|
|
package Lemonldap::NG::Manager::Attributes; |
|
|
|
|
|
|
|
|
|
our $VERSION = '2.0.4'; |
|
|
|
|
our $VERSION = '2.0.5'; |
|
|
|
|
|
|
|
|
|
sub types { |
|
|
|
|
return { |
|
|
|
@ -28,8 +28,14 @@ sub types { |
|
|
|
|
'msgFail' => '__notAValidPerlExpression__', |
|
|
|
|
'test' => sub { |
|
|
|
|
my ( $val, $conf ) = @_; |
|
|
|
|
my $s = ''; |
|
|
|
|
'Safe'->new->reval("BEGIN { warnings->unimport; } $s $val"); |
|
|
|
|
my $s = ''; |
|
|
|
|
my $cpt = 'Safe'->new; |
|
|
|
|
$cpt->share_from( 'MIME::Base64', ['&encode_base64'] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Handler::Main::Jail', |
|
|
|
|
[ '&encrypt', '&token' ] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Common::Safelib', |
|
|
|
|
$Lemonldap::NG::Common::Safelib::functions ); |
|
|
|
|
$cpt->reval("BEGIN { warnings->unimport; } $s $val"); |
|
|
|
|
my $err = join( |
|
|
|
|
'', |
|
|
|
|
grep( { $_ =~ /Undefined subroutine/ ? () : $_; } |
|
|
|
@ -664,8 +670,14 @@ sub attributes { |
|
|
|
|
'casAppMetaDataOptionsRule' => { |
|
|
|
|
'test' => sub { |
|
|
|
|
my ( $val, $conf ) = @_; |
|
|
|
|
my $s = ''; |
|
|
|
|
'Safe'->new->reval("BEGIN { warnings->unimport; } $s $val"); |
|
|
|
|
my $s = ''; |
|
|
|
|
my $cpt = 'Safe'->new; |
|
|
|
|
$cpt->share_from( 'MIME::Base64', ['&encode_base64'] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Handler::Main::Jail', |
|
|
|
|
[ '&encrypt', '&token' ] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Common::Safelib', |
|
|
|
|
$Lemonldap::NG::Common::Safelib::functions ); |
|
|
|
|
$cpt->reval("BEGIN { warnings->unimport; } $s $val"); |
|
|
|
|
my $err = join( |
|
|
|
|
'', |
|
|
|
|
grep( { $_ =~ /Undefined subroutine/ ? () : $_; } |
|
|
|
@ -793,8 +805,14 @@ qr/(?:(?:https?):\/\/(?:(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.] |
|
|
|
|
'default' => 1, |
|
|
|
|
'test' => sub { |
|
|
|
|
my ( $val, $conf ) = @_; |
|
|
|
|
my $s = ''; |
|
|
|
|
'Safe'->new->reval("BEGIN { warnings->unimport; } $s $val"); |
|
|
|
|
my $s = ''; |
|
|
|
|
my $cpt = 'Safe'->new; |
|
|
|
|
$cpt->share_from( 'MIME::Base64', ['&encode_base64'] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Handler::Main::Jail', |
|
|
|
|
[ '&encrypt', '&token' ] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Common::Safelib', |
|
|
|
|
$Lemonldap::NG::Common::Safelib::functions ); |
|
|
|
|
$cpt->reval("BEGIN { warnings->unimport; } $s $val"); |
|
|
|
|
my $err = join( |
|
|
|
|
'', |
|
|
|
|
grep( { $_ =~ /Undefined subroutine/ ? () : $_; } |
|
|
|
@ -1107,8 +1125,14 @@ qr/^(?:\*\.)?(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][ |
|
|
|
|
'keyTest' => qr/^(?=[^\-])[\w\-]+(?<=[^-])$/, |
|
|
|
|
'test' => sub { |
|
|
|
|
my ( $val, $conf ) = @_; |
|
|
|
|
my $s = $val; |
|
|
|
|
'Safe'->new->reval("BEGIN { warnings->unimport; } $s"); |
|
|
|
|
my $s = $val; |
|
|
|
|
my $cpt = 'Safe'->new; |
|
|
|
|
$cpt->share_from( 'MIME::Base64', ['&encode_base64'] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Handler::Main::Jail', |
|
|
|
|
[ '&encrypt', '&token' ] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Common::Safelib', |
|
|
|
|
$Lemonldap::NG::Common::Safelib::functions ); |
|
|
|
|
$cpt->reval("BEGIN { warnings->unimport; } $s"); |
|
|
|
|
my $err = join( |
|
|
|
|
'', |
|
|
|
|
grep( { $_ =~ /Undefined subroutine/ ? () : $_; } |
|
|
|
@ -1203,8 +1227,14 @@ qr/^(?:\*\.)?(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][ |
|
|
|
|
'grantSessionRules' => { |
|
|
|
|
'keyTest' => sub { |
|
|
|
|
my ( $val, $conf ) = @_; |
|
|
|
|
my $s = ''; |
|
|
|
|
'Safe'->new->reval("BEGIN { warnings->unimport; } $s $val"); |
|
|
|
|
my $s = ''; |
|
|
|
|
my $cpt = 'Safe'->new; |
|
|
|
|
$cpt->share_from( 'MIME::Base64', ['&encode_base64'] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Handler::Main::Jail', |
|
|
|
|
[ '&encrypt', '&token' ] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Common::Safelib', |
|
|
|
|
$Lemonldap::NG::Common::Safelib::functions ); |
|
|
|
|
$cpt->reval("BEGIN { warnings->unimport; } $s $val"); |
|
|
|
|
my $err = join( |
|
|
|
|
'', |
|
|
|
|
grep( { $_ =~ /Undefined subroutine/ ? () : $_; } |
|
|
|
@ -1221,8 +1251,14 @@ qr/^(?:\*\.)?(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][ |
|
|
|
|
'default' => {}, |
|
|
|
|
'test' => sub { |
|
|
|
|
my ( $val, $conf ) = @_; |
|
|
|
|
my $s = ''; |
|
|
|
|
'Safe'->new->reval("BEGIN { warnings->unimport; } $s $val"); |
|
|
|
|
my $s = ''; |
|
|
|
|
my $cpt = 'Safe'->new; |
|
|
|
|
$cpt->share_from( 'MIME::Base64', ['&encode_base64'] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Handler::Main::Jail', |
|
|
|
|
[ '&encrypt', '&token' ] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Common::Safelib', |
|
|
|
|
$Lemonldap::NG::Common::Safelib::functions ); |
|
|
|
|
$cpt->reval("BEGIN { warnings->unimport; } $s $val"); |
|
|
|
|
my $err = join( |
|
|
|
|
'', |
|
|
|
|
grep( { $_ =~ /Undefined subroutine/ ? () : $_; } |
|
|
|
@ -1264,8 +1300,14 @@ qr/^(?:\*\.)?(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][ |
|
|
|
|
'default' => 1, |
|
|
|
|
'test' => sub { |
|
|
|
|
my ( $val, $conf ) = @_; |
|
|
|
|
my $s = ''; |
|
|
|
|
'Safe'->new->reval("BEGIN { warnings->unimport; } $s $val"); |
|
|
|
|
my $s = ''; |
|
|
|
|
my $cpt = 'Safe'->new; |
|
|
|
|
$cpt->share_from( 'MIME::Base64', ['&encode_base64'] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Handler::Main::Jail', |
|
|
|
|
[ '&encrypt', '&token' ] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Common::Safelib', |
|
|
|
|
$Lemonldap::NG::Common::Safelib::functions ); |
|
|
|
|
$cpt->reval("BEGIN { warnings->unimport; } $s $val"); |
|
|
|
|
my $err = join( |
|
|
|
|
'', |
|
|
|
|
grep( { $_ =~ /Undefined subroutine/ ? () : $_; } |
|
|
|
@ -1617,7 +1659,13 @@ qr/^(?:\*\.)?(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][ |
|
|
|
|
: ( 0, '__badUrl__' ); |
|
|
|
|
} |
|
|
|
|
$s =~ s/\b(accept|deny|unprotect|skip)\b/1/g; |
|
|
|
|
'Safe'->new->reval("BEGIN { warnings->unimport; } $s"); |
|
|
|
|
my $cpt = 'Safe'->new; |
|
|
|
|
$cpt->share_from( 'MIME::Base64', ['&encode_base64'] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Handler::Main::Jail', |
|
|
|
|
[ '&encrypt', '&token' ] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Common::Safelib', |
|
|
|
|
$Lemonldap::NG::Common::Safelib::functions ); |
|
|
|
|
$cpt->reval("BEGIN { warnings->unimport; } $s"); |
|
|
|
|
my $err = join( |
|
|
|
|
'', |
|
|
|
|
grep( { $_ =~ /Undefined subroutine/ ? () : $_; } |
|
|
|
@ -1657,8 +1705,14 @@ qr/^(?:\*\.)?(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][ |
|
|
|
|
'keyTest' => qr/^[_a-zA-Z][a-zA-Z0-9_]*$/, |
|
|
|
|
'test' => sub { |
|
|
|
|
my ( $val, $conf ) = @_; |
|
|
|
|
my $s = ''; |
|
|
|
|
'Safe'->new->reval("BEGIN { warnings->unimport; } $s $val"); |
|
|
|
|
my $s = ''; |
|
|
|
|
my $cpt = 'Safe'->new; |
|
|
|
|
$cpt->share_from( 'MIME::Base64', ['&encode_base64'] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Handler::Main::Jail', |
|
|
|
|
[ '&encrypt', '&token' ] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Common::Safelib', |
|
|
|
|
$Lemonldap::NG::Common::Safelib::functions ); |
|
|
|
|
$cpt->reval("BEGIN { warnings->unimport; } $s $val"); |
|
|
|
|
my $err = join( |
|
|
|
|
'', |
|
|
|
|
grep( { $_ =~ /Undefined subroutine/ ? () : $_; } |
|
|
|
@ -2047,8 +2101,14 @@ qr/^(?:\*\.)?(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][ |
|
|
|
|
'oidcRPMetaDataOptionsRule' => { |
|
|
|
|
'test' => sub { |
|
|
|
|
my ( $val, $conf ) = @_; |
|
|
|
|
my $s = ''; |
|
|
|
|
'Safe'->new->reval("BEGIN { warnings->unimport; } $s $val"); |
|
|
|
|
my $s = ''; |
|
|
|
|
my $cpt = 'Safe'->new; |
|
|
|
|
$cpt->share_from( 'MIME::Base64', ['&encode_base64'] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Handler::Main::Jail', |
|
|
|
|
[ '&encrypt', '&token' ] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Common::Safelib', |
|
|
|
|
$Lemonldap::NG::Common::Safelib::functions ); |
|
|
|
|
$cpt->reval("BEGIN { warnings->unimport; } $s $val"); |
|
|
|
|
my $err = join( |
|
|
|
|
'', |
|
|
|
|
grep( { $_ =~ /Undefined subroutine/ ? () : $_; } |
|
|
|
@ -2392,8 +2452,14 @@ qr/(?:(?:https?):\/\/(?:(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.] |
|
|
|
|
'keyMsgFail' => '__badSkinRule__', |
|
|
|
|
'keyTest' => sub { |
|
|
|
|
my ( $val, $conf ) = @_; |
|
|
|
|
my $s = ''; |
|
|
|
|
'Safe'->new->reval("BEGIN { warnings->unimport; } $s $val"); |
|
|
|
|
my $s = ''; |
|
|
|
|
my $cpt = 'Safe'->new; |
|
|
|
|
$cpt->share_from( 'MIME::Base64', ['&encode_base64'] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Handler::Main::Jail', |
|
|
|
|
[ '&encrypt', '&token' ] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Common::Safelib', |
|
|
|
|
$Lemonldap::NG::Common::Safelib::functions ); |
|
|
|
|
$cpt->reval("BEGIN { warnings->unimport; } $s $val"); |
|
|
|
|
my $err = join( |
|
|
|
|
'', |
|
|
|
|
grep( { $_ =~ /Undefined subroutine/ ? () : $_; } |
|
|
|
@ -3135,8 +3201,14 @@ qr/(?:(?:https?):\/\/(?:(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.] |
|
|
|
|
'samlSPMetaDataOptionsRule' => { |
|
|
|
|
'test' => sub { |
|
|
|
|
my ( $val, $conf ) = @_; |
|
|
|
|
my $s = ''; |
|
|
|
|
'Safe'->new->reval("BEGIN { warnings->unimport; } $s $val"); |
|
|
|
|
my $s = ''; |
|
|
|
|
my $cpt = 'Safe'->new; |
|
|
|
|
$cpt->share_from( 'MIME::Base64', ['&encode_base64'] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Handler::Main::Jail', |
|
|
|
|
[ '&encrypt', '&token' ] ); |
|
|
|
|
$cpt->share_from( 'Lemonldap::NG::Common::Safelib', |
|
|
|
|
$Lemonldap::NG::Common::Safelib::functions ); |
|
|
|
|
$cpt->reval("BEGIN { warnings->unimport; } $s $val"); |
|
|
|
|
my $err = join( |
|
|
|
|
'', |
|
|
|
|
grep( { $_ =~ /Undefined subroutine/ ? () : $_; } |
|
|
|
|