Initial attempt at adding LDAP login support

This commit is contained in:
ajs124
2019-10-13 02:06:36 +02:00
committed by Andreas Rammhold
parent e707990e2d
commit 28646e1c5f
2 changed files with 42 additions and 3 deletions

View File

@@ -20,7 +20,8 @@ use Catalyst qw/ConfigLoader
Captcha/,
'-Log=warn,fatal,error';
use CatalystX::RoleApplicator;
use YAML qw(LoadFile);
use Path::Class 'file';
our $VERSION = '0.01';
@@ -44,6 +45,9 @@ __PACKAGE__->config(
role_field => "role",
},
},
ldap => LoadFile(
file($ENV{'HYDRA_LDAP_CONFIG'})
)
},
},
'Plugin::Static::Simple' => {