# LDAP configuration using helm

**URL:** <https://forum.opensearch.org/t/ldap-configuration-using-helm/4459>\
**Category:** Security\
**Created:** [December 22, 2020, 6:45am UTC](https://forum.opensearch.org/t/ldap-configuration-using-helm/4459 "2020-12-22T06:45:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![satya](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@satya](https://forum.opensearch.org/u/satya)\
**Post date:** [December 22, 2020, 6:45am UTC](https://forum.opensearch.org/t/ldap-configuration-using-helm/4459/1 "2020-12-22T06:45:36Z")

</div>

Hi, I am trying to install opendistro elastic in kubernetes using [helm](https://opendistro.github.io/for-elasticsearch-docs/docs/install/helm/):  
But did not find any info on how to enable ldap.  
Can anyone help me here.

---

<div class="post-metadata">

**Author:** ![Anthony](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/anthony/32/9939_2.png) [@Anthony](https://forum.opensearch.org/u/Anthony)\
**Post date:** [February 12, 2021, 9:17pm UTC](https://forum.opensearch.org/t/ldap-configuration-using-helm/4459/2 "2021-02-12T21:17:23Z")

</div>

@satya There are a couple of things that need to be addressed.  
First, you will need to list all the security configuration files in values.yaml as they are required (if you don’t want to start changing the various templates in that repo). Like so:

```
config:
   securityConfigSecret: <anyname>
   data:
    whitelist.yml: |-
      ---
      _meta:
        type: "whitelist"
        config_version: 2
      
      config:
        enabled: false
        requests:
          /_cluster/settings:
            - GET
          /_cat/nodes:
            - GET
    roles_mapping.yml: |-
      _meta:
        type: "rolesmapping" ...
      ...

```

The files are (yml) whitelist, roles\_mapping, nodes\_dn, audit, config, internal\_users, roles, tenants, action\_groups. I recommend running vanilla instance of odfe (same version you are working with) and extracting these files after demo install runs. As its very easy to make a typo or mix up version format.

You can comment out the section above config, although I’m not sure if you need to:

#actionGroupsSecret:  
#configSecret:  
#internalUsersSecret:  
#rolesSecret:  
#rolesMappingSecret:  
#tenantsSecret:

The configuration for ldap needs to go in config.yml section, see example here [Create role for only LDAP Users - #3 by HeiDri](https://forum.opensearch.org/t/create-role-for-only-ldap-users/4285/3)  
It uses authc and authz for group/role extraction.

Once that is entered, run the command on the link you provided to deploy the package. Once it’s up and running, next step would be initialise security plugin. You can do that in many ways, the most straight forward is to connect to master or data pod and run it manually (./usr/share/elasticsearch/plugins/opendistro\_security/tools/securityadmin.sh). Any mistakes in config files will be displayed.  
If you don’t see any errors - you should be good to go. Port forward to kibana service and fire away 🙂  
Hope this helps
