# Ldap session expired very quick

**URL:** <https://discuss.elastic.co/t/ldap-session-expired-very-quick/250276>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [September 29, 2020, 2:37am UTC](https://discuss.elastic.co/t/ldap-session-expired-very-quick/250276 "2020-09-29T02:37:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)\
**Post date:** [September 29, 2020, 2:37am UTC](https://discuss.elastic.co/t/ldap-session-expired-very-quick/250276/1 "2020-09-29T02:37:57Z")

</div>

Hi all,  
I have been trying the ldap authentication feature on elastic, and have successfully config for it to work on elastic, now everytime i tried to authenticate with ldap on kibana it took like 5 to 10 min for me to loged out of my kibana.  
Are there any way to increase this session timeout to similar to the one on the native authen realm.

Thanks you all for your time.

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [September 30, 2020, 6:18pm UTC](https://discuss.elastic.co/t/ldap-session-expired-very-quick/250276/2 "2020-09-30T18:18:33Z")

</div>

> [@lusynda](#):
>
> increase this session timeout

do you have `xpack.security.sessionTimeout` set in your kibana.yml? Also, what do you have set for `xpack.security.authc.providers` or `xpack.security.authProviders` ?Do you happen to have multiple "tabs" open for Kibana in the same browser?

more discussed here : [SESSION\_EXPIRED while login kibana](https://discuss.elastic.co/t/session-expired-while-login-kibana/147511) in similar threads

Thanks  
Rashmi

---

<div class="post-metadata">

**Author:** ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)\
**Post date:** [October 1, 2020, 3:00am UTC](https://discuss.elastic.co/t/ldap-session-expired-very-quick/250276/3 "2020-10-01T03:00:23Z")

</div>

> [@rashmi](#):
>
> do you have `xpack.security.sessionTimeout` set in your kibana.yml?

Yes i have that config already but it still happened.

I was somehow able to fix the problems by increase the ldap connection timeout in the elastic config

```auto
tcp.ldap_search: 30s

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 29, 2020, 3:00am UTC](https://discuss.elastic.co/t/ldap-session-expired-very-quick/250276/4 "2020-10-29T03:00:31Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
