outposts/ldap: decrease verbosity
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
19ee98b36d
commit
bd0ef69ece
|
@ -31,12 +31,12 @@ func NewSessionBinder(si server.LDAPServerInstance, oldBinder bind.Binder) *Sess
|
||||||
if oldSb, ok := oldBinder.(*SessionBinder); ok {
|
if oldSb, ok := oldBinder.(*SessionBinder); ok {
|
||||||
sb.DirectBinder = oldSb.DirectBinder
|
sb.DirectBinder = oldSb.DirectBinder
|
||||||
sb.sessions = oldSb.sessions
|
sb.sessions = oldSb.sessions
|
||||||
sb.log.Info("re-initialised session binder")
|
sb.log.Debug("re-initialised session binder")
|
||||||
} else {
|
} else {
|
||||||
sb.sessions = ttlcache.New(ttlcache.WithDisableTouchOnHit[Credentials, ldap.LDAPResultCode]())
|
sb.sessions = ttlcache.New(ttlcache.WithDisableTouchOnHit[Credentials, ldap.LDAPResultCode]())
|
||||||
sb.DirectBinder = *direct.NewDirectBinder(si)
|
sb.DirectBinder = *direct.NewDirectBinder(si)
|
||||||
go sb.sessions.Start()
|
go sb.sessions.Start()
|
||||||
sb.log.Info("initialised session binder")
|
sb.log.Debug("initialised session binder")
|
||||||
}
|
}
|
||||||
return sb
|
return sb
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@ func NewMemorySearcher(si server.LDAPServerInstance) *MemorySearcher {
|
||||||
si: si,
|
si: si,
|
||||||
log: log.WithField("logger", "authentik.outpost.ldap.searcher.memory"),
|
log: log.WithField("logger", "authentik.outpost.ldap.searcher.memory"),
|
||||||
}
|
}
|
||||||
ms.log.Info("initialised memory searcher")
|
ms.log.Debug("initialised memory searcher")
|
||||||
ms.users = ms.FetchUsers()
|
ms.users = ms.FetchUsers()
|
||||||
ms.groups = ms.FetchGroups()
|
ms.groups = ms.FetchGroups()
|
||||||
return ms
|
return ms
|
||||||
|
|
Reference in New Issue