work on LDAP
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-04 15:53:21 +11:00
parent d6c082675e
commit 7a8fd8e200
4 changed files with 46 additions and 17 deletions

View File

@@ -150,6 +150,11 @@ func main() {
// Load certificate for LDAP connectivy
models.LoadLdapCert()
ldapServer := os.Getenv("LDAP_BIND_ADDRESS")
if ldapServer != "" {
models.LdapEnabled = true
}
// Create context that listens for the interrupt signal from the OS.
ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
defer stop()