# X-pack LDAP configuration?

**URL:** https://discuss.elastic.co/t/x-pack-ldap-configuration/84006
**Category:** Elasticsearch
**Created:** [April 28, 2017, 11:45am UTC](https://discuss.elastic.co/t/x-pack-ldap-configuration/84006 "2017-04-28T11:45:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vijayramachandran](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vijayramachandran](https://discuss.elastic.co/u/vijayramachandran)
#### Post date: [April 28, 2017, 11:45am UTC](https://discuss.elastic.co/t/x-pack-ldap-configuration/84006/1 "2017-04-28T11:45:32Z")

</div>

Hello there,

I am trying to setup LDAP authentication with X-Pack, I have created a normal user, but that didn't work for me either ways (with user and without user) I get the webpage.

curl -u vijay:XXXX [http://abc.com:9200](http://abc.com:9200) - it works  
curl [http://abc.com:9200](http://abc.com:9200) - it works

Tried LDAP stuff since it is the requirement, but didn't quite know to check my LDAP configuration is working or not.

Configuration entries elasticsearch.yml

xpack:  
security:  
authc:  
realms:  
ldap1:  
type: ldap  
order: 0  
url: "ldaps://gslb.yyg.yyads.google.com:636"  
bind\_dn: "cn=hello, ou=users, dc=YYG, dc=YYADS, dc=google, DC=COM"  
bind\_password: password  
user\_search:  
base\_dn: "dc=YYG, dc=YYADS, dc=GOOGLE, DC=COM"  
attribute: cn  
group\_search:  
base\_dn: "dc=YYG, dc=YYADS, dc=GOOGLE, DC=COM"

Please let me know if I am missing something and how to test this.

---

<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: [May 26, 2017, 11:56am UTC](https://discuss.elastic.co/t/x-pack-ldap-configuration/84006/2 "2017-05-26T11:56:56Z")

</div>

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