This commit is contained in:
Lou Knauer
2021-12-09 16:26:59 +01:00
parent 8178b6e854
commit b1d2403839
3 changed files with 12 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ var ldapAdminPassword string
func initLdap(config *LdapConfig) error {
ldapAdminPassword = os.Getenv("LDAP_ADMIN_PASSWORD")
if ldapAdminPassword == "" {
log.Println("warning: environment variable 'LDAP_ADMIN_PASSWORD' not set")
log.Println("warning: environment variable 'LDAP_ADMIN_PASSWORD' not set (ldap sync or authentication will not work)")
}
ldapConfig = config