From c00b42dced5ea3051786fa67293804407d2b7d39 Mon Sep 17 00:00:00 2001 From: edef Date: Tue, 29 Oct 2019 13:12:49 +0000 Subject: [PATCH] don't try to load HYDRA_LDAP_CONFIG if none is provided --- src/lib/Hydra.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/Hydra.pm b/src/lib/Hydra.pm index 3c8184d9..7894a8ba 100644 --- a/src/lib/Hydra.pm +++ b/src/lib/Hydra.pm @@ -45,9 +45,9 @@ __PACKAGE__->config( role_field => "role", }, }, - ldap => LoadFile( - file($ENV{'HYDRA_LDAP_CONFIG'}) - ) + ldap => $ENV{'HYDRA_LDAP_CONFIG'} ? LoadFile( + file($ENV{'HYDRA_LDAP_CONFIG'}) + ) : undef }, }, 'Plugin::Static::Simple' => {