outposts/ldap: decrease verbosity

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2023-01-17 11:12:22 +01:00
parent 19ee98b36d
commit bd0ef69ece
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -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
} }

View file

@ -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