From 43a36aba3c9fe98af1d993c72e5697e63be27ce9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Oudot?= Date: Fri, 25 Apr 2014 08:19:37 +0000 Subject: [PATCH] Declare local session storage in attributes (#671) --- .../Lemonldap/NG/Common/Conf/Attributes.pm | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/Attributes.pm b/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/Attributes.pm index 23ebc6ed6..d97376a28 100644 --- a/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/Attributes.pm +++ b/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/Attributes.pm @@ -502,6 +502,28 @@ has 'ldapVersion' => ( documentation => 'LDAP protocol version', ); +has 'localSessionStorage' => ( + is => 'rw', + isa => 'Str', + default => 'Cache::FileCache', + documentation => 'Sessions cache module', +); + +has 'localSessionStorageOptions' => ( + is => 'rw', + isa => 'HashRef', + default => sub { + return { + 'namespace' => 'lemonldap-ng-sessions', + 'default_expires_in' => 600, + 'directory_umask' => '007', + 'cache_root' => '/tmp', + 'cache_depth' => 5, + }; + }, + documentation => 'Sessions cache module options', +); + has 'loginHistoryEnabled' => ( is => 'rw', isa => 'Bool',