make glauth respect file paths

This commit is contained in:
Willy Kloucek
2020-12-11 13:14:32 +01:00
parent f9f90568b4
commit b42e507ab5
3 changed files with 22 additions and 1 deletions

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")
}
}