more work on ldap integration
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
6
main.go
6
main.go
@@ -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.
|
||||
|
Reference in New Issue
Block a user