# Error when trying to authenticate automatically using LDAP

**URL:** <https://community.auth0.com/t/error-when-trying-to-authenticate-automatically-using-ldap/7897>\
**Category:** Get Help\
**Tags:** ldap\
**Created:** [August 19, 2017, 12:52am UTC](https://community.auth0.com/t/error-when-trying-to-authenticate-automatically-using-ldap/7897 "2017-08-19T00:52:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![muriukijoel](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@muriukijoel](https://community.auth0.com/u/muriukijoel)\
**Post date:** [August 19, 2017, 12:52am UTC](https://community.auth0.com/t/error-when-trying-to-authenticate-automatically-using-ldap/7897/1 "2017-08-19T00:52:02Z")

</div>

```
 TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
    at fromObject (buffer.js:262:9)
    at Function.Buffer.from (buffer.js:101:10)
    at new Buffer (buffer.js:80:17)
    at /opt/auth0-adldap/server.js:90:19

```

![alt text][1]

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:56am UTC](https://community.auth0.com/t/error-when-trying-to-authenticate-automatically-using-ldap/7897/2 "2018-03-02T05:56:00Z")

</div>


