# LDAP type is not supported - ERROR

**URL:** https://discuss.elastic.co/t/ldap-type-is-not-supported-error/44989
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [March 21, 2016, 12:24pm UTC](https://discuss.elastic.co/t/ldap-type-is-not-supported-error/44989 "2016-03-21T12:24:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Yaseen](https://avatars.discourse-cdn.com/v4/letter/y/e0b2c6/32.png) [@Yaseen](https://discuss.elastic.co/u/Yaseen)
#### Post date: [March 21, 2016, 12:24pm UTC](https://discuss.elastic.co/t/ldap-type-is-not-supported-error/44989/1 "2016-03-21T12:24:41Z")

</div>

Hi, I am facing an issue with setting up shield integration with my LDAP.  
I have elasticsearch v1.7.5  
My elasticsearch.yaml:  
...  
shield.authc:  
realms:  
realm1:  
type: ldap  
order: 1  
url: ""  
bind\_dn: ""  
bind\_password:  
files:  
role\_mapping: "...elasticsearch17/1.7.5/config/shield/role\_mapping.yml"

When I restart my elasticsearch, I get:

[2016-03-21 13:10:36,902][INFO][node] [Gazelle] version[1.7.5], pid[17791], build[00f95f4/2016-02-02T09:55:30Z]  
[2016-03-21 13:10:36,902][INFO][node] [Gazelle] initializing ...  
[2016-03-21 13:10:36,994][INFO][plugins] [Gazelle] loaded [license, shield], sites []  
[2016-03-21 13:10:37,025][INFO][env] [Gazelle] using [1] data paths, mounts [[/ (/dev/disk1)]], net usable\_space [229.3gb], net total\_space [464.8gb], types [hfs]  
[2016-03-21 13:10:37,306][INFO][transport] [Gazelle] Using [org.elasticsearch.shield.transport.ShieldServerTransportService] as transport service, overridden by [shield]  
[2016-03-21 13:10:37,306][INFO][transport] [Gazelle] Using [org.elasticsearch.shield.transport.netty.ShieldNettyTransport] as transport, overridden by [shield]  
[2016-03-21 13:10:37,306][INFO][http] [Gazelle] Using [org.elasticsearch.shield.transport.netty.ShieldNettyHttpServerTransport] as http transport, overridden by [shield]  
{1.7.5}: Initialization Failed ...

1. ElasticsearchIllegalArgumentException[no type support [ldap]]

Any ideas, what I am missing?

Thanks.

---

<div class="post-metadata">

### Author: ![jaymode](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaymode/32/50103_2.png) [@jaymode](https://discuss.elastic.co/u/jaymode)
#### Post date: [March 21, 2016, 12:46pm UTC](https://discuss.elastic.co/t/ldap-type-is-not-supported-error/44989/2 "2016-03-21T12:46:55Z")

</div>

That exception doesn't look like one that shield would throw in this case. Can you confirm that your yaml formatting is correct and you do not have any tabs in your config file? Without the proper formatting, this will not be read properly.

---

<div class="post-metadata">

### Author: ![Yaseen](https://avatars.discourse-cdn.com/v4/letter/y/e0b2c6/32.png) [@Yaseen](https://discuss.elastic.co/u/Yaseen)
#### Post date: [March 21, 2016, 1:24pm UTC](https://discuss.elastic.co/t/ldap-type-is-not-supported-error/44989/3 "2016-03-21T13:24:08Z")

</div>

Thanks for replying. I fixed the format and seems to be working now.

---

<div class="post-metadata">

### Author: ![Yaseen](https://avatars.discourse-cdn.com/v4/letter/y/e0b2c6/32.png) [@Yaseen](https://discuss.elastic.co/u/Yaseen)
#### Post date: [March 21, 2016, 1:25pm UTC](https://discuss.elastic.co/t/ldap-type-is-not-supported-error/44989/4 "2016-03-21T13:25:40Z")

</div>

shield.authc.realms.realm1.type: ldap  
shield.authc.realms.realm1.order: 1  
shield.authc.realms.realm1.url: ""  
shield.authc.realms.realm1.bind\_dn: ""  
shield.authc.realms.realm1.bind\_password:  
shield.authc.realms.realm1.files.role\_mapping: "/usr/local/Cellar/elasticsearch17/1.7.5/config/shield/role\_mapping.yml"

However, I am still getting this error: ShieldSettingsException[configured LDAP protocols are not all equal (ldaps://.. and ldap://..): [ldap://10.21.9...

This is an issue on my side, no worries. Thanks a lot

---

<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: [July 6, 2017, 1:45pm UTC](https://discuss.elastic.co/t/ldap-type-is-not-supported-error/44989/5 "2017-07-06T13:45:55Z")

</div>


