# Kibana-4.1 LDAP Authentication Issue

**URL:** <https://discuss.elastic.co/t/kibana-4-1-ldap-authentication-issue/43869>\
**Category:** Kibana\
**Created:** [March 9, 2016, 7:22am UTC](https://discuss.elastic.co/t/kibana-4-1-ldap-authentication-issue/43869 "2016-03-09T07:22:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![star](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@star](https://discuss.elastic.co/u/star)\
**Post date:** [March 9, 2016, 7:22am UTC](https://discuss.elastic.co/t/kibana-4-1-ldap-authentication-issue/43869/1 "2016-03-09T07:22:31Z")

</div>

**Not able to load npm package 'ldap' in kibana.**

I'm trying to use the ldap package in kibana.  
Installed it by running npm install ldapjs and included it in package.json file  
Added the ldap entry in require.config.js and also added "nodeRequire: require", so that it includes the ldapjs package.  
But when i try to load the package using  
var ldap=require('ldapjs');  
It gives me the error, PFA screenshot of the error.

Can u tell me how to load this package. I guess the issue is since its a node package i'm not able to load it using require.config.js.

Please tell me how to include it in require.config.js so that i can use the ldapjs package in any of the js file.

 ![](https://us1.discourse-cdn.com/elastic/original/2X/d/d66739891d0bcb6382dfe6f093b6666ff2e324a1.PNG)

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [March 9, 2016, 8:08pm UTC](https://discuss.elastic.co/t/kibana-4-1-ldap-authentication-issue/43869/2 "2016-03-09T20:08:54Z")

</div>

If you want to integrate with LDAP, the easiest thing to do is use [Shield](https://www.elastic.co/products/shield). Kibana [supports Shield out of the box](https://www.elastic.co/guide/en/shield/current/kibana.html), and in turn Shield [supports LDAP out of the box](https://www.elastic.co/guide/en/shield/current/ldap.html).

---

<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:59pm UTC](https://discuss.elastic.co/t/kibana-4-1-ldap-authentication-issue/43869/3 "2017-07-06T13:59:38Z")

</div>

Closed on July 6, 2017, 1:59pm UTC


