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

This commit is contained in:
2024-01-04 20:45:34 +11:00
parent 44b92a8b08
commit ffa8778d2b
2 changed files with 96 additions and 14 deletions

View File

@@ -147,12 +147,10 @@ func main() {
models.ReceiveKey(keyString)
}
// Load certificate for LDAP connectivy
models.LoadLdapCert()
// If LDAP configuration is defined, prepare connection
ldapServer := os.Getenv("LDAP_BIND_ADDRESS")
if ldapServer != "" {
models.LdapEnabled = true
models.LdapSetup()
}
// Create context that listens for the interrupt signal from the OS.