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' => {