don't try to load HYDRA_LDAP_CONFIG if none is provided

This commit is contained in:
edef
2020-09-09 13:02:51 +02:00
committed by Andreas Rammhold
parent b9ff7b2671
commit c00b42dced
+3 -3
View File
@@ -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' => {