# Baremetal cloud-on-k8s instance how to add LDAP bind password

**URL:** https://discuss.elastic.co/t/baremetal-cloud-on-k8s-instance-how-to-add-ldap-bind-password/199104
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [September 11, 2019, 3:47pm UTC](https://discuss.elastic.co/t/baremetal-cloud-on-k8s-instance-how-to-add-ldap-bind-password/199104 "2019-09-11T15:47:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sfgroups1](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@sfgroups1](https://discuss.elastic.co/u/sfgroups1)
#### Post date: [September 11, 2019, 3:47pm UTC](https://discuss.elastic.co/t/baremetal-cloud-on-k8s-instance-how-to-add-ldap-bind-password/199104/1 "2019-09-11T15:47:12Z")

</div>

Hi,

I am in the process of setting up the LDAP authentication, I was able to add LDAP details in **nodes.config** section. But unsure how to add bind password.

[https://www.elastic.co/guide/en/elasticsearch/reference/7.3/configuring-ldap-realm.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/configuring-ldap-realm.html)

based on the this document I need to include **xpack.security.authc.realms.ldap.ldap1.secure\_bind\_password** value for ldap bind password. Unsure how to include this password when we are using Elastic Operator.

Look at this document [https://github.com/elastic/cloud-on-k8s/blob/master/docs/elasticsearch-spec.asciidoc#{p}-es-secure-settings](https://github.com/elastic/cloud-on-k8s/blob/master/docs/elasticsearch-spec.asciidoc#%7Bp%7D-es-secure-settings), but is not clear how to add this bind secret.

Thanks

---

<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: [September 12, 2019, 9:42am UTC](https://discuss.elastic.co/t/baremetal-cloud-on-k8s-instance-how-to-add-ldap-bind-password/199104/2 "2019-09-12T09:42:10Z")

</div>

Doesn't

```auto
spec:
  secureSettings:
  - xpack.security.authc.realms.ldap.ldap1.secure_bind_password: the_password_here

```

work for you ?

---

<div class="post-metadata">

### Author: ![sfgroups1](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@sfgroups1](https://discuss.elastic.co/u/sfgroups1)
#### Post date: [September 12, 2019, 9:54pm UTC](https://discuss.elastic.co/t/baremetal-cloud-on-k8s-instance-how-to-add-ldap-bind-password/199104/3 "2019-09-12T21:54:02Z")

</div>

> [@ikakavas](#):
>
> xpack.security.authc.realms.ldap.ldap1.secure\_bind\_password:

I tried like this now its adding the bind secret key. thanks for the response

```
apiVersion: v1
kind: Secret
metadata:
  name: scure-secret
type: Opaque
data:
  xpack.security.authc.realms.ldap.ldap1.secure_bind_password: YWRtaW4=
---
apiVersion: elasticsearch.k8s.elastic.co/v1alpha1
kind: Elasticsearch
metadata:
  name: elastic-ldap
spec:
  version: 7.2.0
  secureSettings:
    secretName: scure-secret

```

---

<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 10, 2019, 9:54pm UTC](https://discuss.elastic.co/t/baremetal-cloud-on-k8s-instance-how-to-add-ldap-bind-password/199104/4 "2019-10-10T21:54:04Z")

</div>

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