From 25a4310bb1a68576a3637779e0f792d6733a4f68 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 11 May 2022 10:04:11 +0200 Subject: [PATCH] internal: use Expires not MaxAge for LDAP session Signed-off-by: Jens Langhammer --- internal/outpost/ldap/bind/memory/memory.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/outpost/ldap/bind/memory/memory.go b/internal/outpost/ldap/bind/memory/memory.go index 8f1899568..b8ba768d0 100644 --- a/internal/outpost/ldap/bind/memory/memory.go +++ b/internal/outpost/ldap/bind/memory/memory.go @@ -56,7 +56,7 @@ func (sb *SessionBinder) Bind(username string, req *bind.Request) (ldap.LDAPResu sb.sessions.Set(Credentials{ DN: req.BindDN, Password: req.BindPW, - }, result, time.Duration(flags.Session.MaxAge)) + }, result, time.Until(flags.Session.Expires)) } return result, err }