Random logout with LDAP

Versions
OSD v 2.17.1

Users logged in via LDAP are logged out at random time. Sometimes in minutes, sometimes in hours. Even when setting filters.

opensearch_dashboards.yml:

opensearch_security.cookie.secure: false
opensearch_security.session.keepalive: true
opensearch_security.cookie.ttl: 259200000
opensearch_security.session.ttl: 259200000

I found a refresh_tokens option (opensearch_security.openid.refresh_tokens) for openid that helps with the same problem on openid. But I can’t find if there is something similar for LDAP.