mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-23 12:51:40 +02:00
bugfix: LDAP is optional
This commit is contained in:
@@ -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)")
|
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)
|
interval, err := time.ParseDuration(la.config.SyncInterval)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Reference in New Issue
Block a user