# Active Directory Realm Performance

**URL:** <https://discuss.elastic.co/t/active-directory-realm-performance/113547>\
**Category:** Elasticsearch\
**Created:** [December 29, 2017, 7:28am UTC](https://discuss.elastic.co/t/active-directory-realm-performance/113547 "2017-12-29T07:28:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaveyDevOps](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daveydevops/32/57124_2.png) [@DaveyDevOps](https://discuss.elastic.co/u/DaveyDevOps)\
**Post date:** [December 29, 2017, 7:28am UTC](https://discuss.elastic.co/t/active-directory-realm-performance/113547/1 "2017-12-29T07:28:20Z")

</div>

We have an Active Directory Realm configured to use ldaps (SSL/TLS).

Does anyone know if the system uses pooled connections to the AD server vs creating a new connection for each authentication request?

Also wondering how long/if the system caches search results, i.e. a users credentials and group membership?

Thank you for you time.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [January 1, 2018, 6:00am UTC](https://discuss.elastic.co/t/active-directory-realm-performance/113547/2 "2018-01-01T06:00:44Z")

</div>

> [@DaveyDevOps](#):
>
> Does anyone know if the system uses pooled connections to the AD server vs creating a new connection for each authentication request?

This is configurable, however the pool requires that you provide a system wide `bind_dn` user to establish connections for the pool. See: [Active Directory User Authentication | X-Pack for the Elastic Stack [6.1] | Elastic](https://www.elastic.co/guide/en/x-pack/6.1/active-directory-realm.html#_configuring_a_bind_user)

> [@DaveyDevOps](#):
>
> Also wondering how long/if the system caches search results, i.e. a users credentials and group membership?

This is also configurable. See `cache.ttl` in the [AD realm settings](https://www.elastic.co/guide/en/x-pack/6.1/active-directory-realm.html#ad-settings)

---

<div class="post-metadata">

**Author:** ![DaveyDevOps](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daveydevops/32/57124_2.png) [@DaveyDevOps](https://discuss.elastic.co/u/DaveyDevOps)\
**Post date:** [January 2, 2018, 6:43am UTC](https://discuss.elastic.co/t/active-directory-realm-performance/113547/3 "2018-01-02T06:43:01Z")

</div>

Thanks for the direction Tim. That was helpful.

---

<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:** [January 30, 2018, 6:43am UTC](https://discuss.elastic.co/t/active-directory-realm-performance/113547/4 "2018-01-30T06:43:13Z")

</div>

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