mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-24 12:29:05 +01:00
bugfix: LDAP is optional
This commit is contained in:
parent
e500c1515e
commit
dc4c7f0033
@ -38,7 +38,7 @@ func (la *LdapAutnenticator) Init(auth *Authentication, conf interface{}) error
|
||||
log.Warn("environment variable 'LDAP_ADMIN_PASSWORD' not set (ldap sync will not work)")
|
||||
}
|
||||
|
||||
if la.config.SyncInterval != "" {
|
||||
if la.config != nil && la.config.SyncInterval != "" {
|
||||
interval, err := time.ParseDuration(la.config.SyncInterval)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user