Constants.pm 2.58 KB
Newer Older
1
# This file is generated by Lemonldap::NG::Manager::Build. Don't modify it by hand
2
package Lemonldap::NG::Common::Conf::Constants;
3 4 5

use strict;
use Exporter 'import';
6
use base qw(Exporter);
7

Xavier Guimard's avatar
Xavier Guimard committed
8
our $VERSION = '2.0.2';
9 10 11 12

# CONSTANTS

use constant CONFIG_WAS_CHANGED => -1;
13 14 15
use constant UNKNOWN_ERROR      => -2;
use constant DATABASE_LOCKED    => -3;
use constant UPLOAD_DENIED      => -4;
16
use constant SYNTAX_ERROR       => -5;
Xavier Guimard's avatar
Xavier Guimard committed
17 18 19 20 21 22 23
use constant DEPRECATED         => -6;
use constant DEFAULTCONFFILE => "/usr/local/lemonldap-ng/etc/lemonldap-ng.ini";
use constant DEFAULTSECTION  => "all";
use constant CONFSECTION     => "configuration";
use constant PORTALSECTION   => "portal";
use constant HANDLERSECTION  => "handler";
use constant MANAGERSECTION  => "manager";
24
use constant SESSIONSEXPLORERSECTION => "sessionsExplorer";
Clément OUDOT's avatar
Clément OUDOT committed
25
use constant APPLYSECTION            => "apply";
26
our $hashParameters = qr/^(?:(?:l(?:o(?:ca(?:lSessionStorageOption|tionRule)|goutService)|dapExportedVar|wp(?:Ssl)?Opt)|(?:(?:d(?:emo|bi)|facebook|webID)ExportedVa|exported(?:Heade|Va)|issuerDBGetParamete)r|re(?:moteGlobalStorageOption|st2f(?:Verify|Init)Arg|loadUrl)|g(?:r(?:antSessionRule|oup)|lobalStorageOption)|n(?:otificationStorageOption|ginxCustomHandler)|macro)s|o(?:idc(?:RPMetaData(?:(?:Option(?:sExtraClaim)?|ExportedVar)s|Node)|OPMetaData(?:(?:ExportedVar|Option)s|J(?:SON|WKS)|Node)|S(?:erviceMetaDataAuthnContext|torageOptions))|penIdExportedVars)|s(?:aml(?:S(?:PMetaData(?:(?:ExportedAttribute|Option)s|Node|XML)|torageOptions)|IDPMetaData(?:(?:ExportedAttribute|Option)s|Node|XML))|essionDataToRemember|laveExportedVars)|c(?:as(?:S(?:rvMetaData(?:(?:ExportedVar|Option)s|Node)|torageOptions)|A(?:ppMetaData(?:(?:ExportedVar|Option)s|Node)|ttributes))|(?:ustomAddParam|ombModule)s)|p(?:ersistentStorageOptions|o(?:rtalSkinRules|st))|a(?:ut(?:hChoiceMod|oSigninR)ules|pplicationList)|v(?:hostOptions|irtualHost)|S(?:MTPTLSOpts|SLVarIf))$/;
27

28
our @sessionTypes = ( 'remoteGlobal', 'global', 'localSession', 'persistent', 'saml', 'oidc', 'cas' );
Xavier Guimard's avatar
Xavier Guimard committed
29

30 31
sub NO {qr/^(?:off|no|0)?$/i}

Xavier Guimard's avatar
Xavier Guimard committed
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
our %EXPORT_TAGS = (
    'all' => [
        qw(
          CONFIG_WAS_CHANGED
          UNKNOWN_ERROR
          DATABASE_LOCKED
          UPLOAD_DENIED
          SYNTAX_ERROR
          DEPRECATED
          DEFAULTCONFFILE
          DEFAULTSECTION
          CONFSECTION
          PORTALSECTION
          HANDLERSECTION
          MANAGERSECTION
47
          SESSIONSEXPLORERSECTION
Xavier Guimard's avatar
Xavier Guimard committed
48
          APPLYSECTION
49
          NO
50
          $hashParameters
51
          @sessionTypes 
Xavier Guimard's avatar
Xavier Guimard committed
52 53 54
          )
    ]
);
55 56
our @EXPORT_OK   = ( @{ $EXPORT_TAGS{'all'} } );
our @EXPORT      = ( @{ $EXPORT_TAGS{'all'} } );
57 58

1;