make glauth respect file paths

This commit is contained in:
Willy Kloucek committed 2020-12-15 09:53:32 +01:00
1 parent f9f90568b4
commit b42e507ab5
3 files changed
+22 -1

No files matched your search

+1 -1
View File
@@ -189,7 +189,7 @@ func Server(cfg *config.Config) *cli.Command {
if lscfg.Enabled {
// GenCert has side effects as it writes 2 files to the binary running location
if err := crypto.GenCert("ldap.crt", "ldap.key", logger); err != nil {
if err := crypto.GenCert(cfg.Ldaps.Cert, cfg.Ldaps.Key, logger); err != nil {
logger.Fatal().Err(err).Msgf("Could not generate test-certificate")
}
}