# How to LDAP Connection?

**URL:** <https://discuss.elastic.co/t/how-to-ldap-connection/126069>\
**Category:** Elasticsearch\
**Created:** [March 29, 2018, 10:03am UTC](https://discuss.elastic.co/t/how-to-ldap-connection/126069 "2018-03-29T10:03:48Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [March 30, 2018, 5:14am UTC](https://discuss.elastic.co/t/how-to-ldap-connection/126069/9 "2018-03-30T05:14:48Z")

</div>

Hi,

The following is just enabling the DEBUG log for ldap by changing the cluster settings, it was not meant to be an authentication test.

> [@ikakavas](#):
>
> curl -H "Content-Type: application/json" -XPUT -uelastic '[http://localhost:9200/\_cluster/settings](http://localhost:9200/_cluster/settings)' -d'  
> {  
> "transient" : {  
> "logger.org.elasticsearch.xpack.security.authc.ldap" : "DEBUG"  
> }  
> }'

Have you restarted Elasticsearch after defining the ldap realm in `elasticsearch.yml` ?

Try authenticating as follows:

```auto
 curl -u SGZ1coltefkusers 'http://10.198.39.8:9200/_xpack/security/_authenticate?pretty'

```

and check the logs again.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-ldap-connection/126069)._
