# Enable LDAP in PHP?

**URL:** <https://community.localwp.com/t/enable-ldap-in-php/1593>\
**Category:** Support\
**Created:** [May 31, 2017, 2:33pm UTC](https://community.localwp.com/t/enable-ldap-in-php/1593 "2017-05-31T14:33:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gilzow](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/gilzow/32/4739_2.png) [@gilzow](https://community.localwp.com/u/gilzow)\
**Post date:** [May 31, 2017, 2:33pm UTC](https://community.localwp.com/t/enable-ldap-in-php/1593/1 "2017-05-31T14:33:24Z")

</div>

Is there an easy method to enable LDAP support in PHP in Local? I’m guessing “no” since you have to compile php --with-ldap but thought i’d check first.

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [May 31, 2017, 2:39pm UTC](https://community.localwp.com/t/enable-ldap-in-php/1593/2 "2017-05-31T14:39:38Z")

</div>

Hi Paul,

Unfortunately the answer is indeed “no” but we can look into this.

Do you need LDAP for a popular plugin or is it for a custom set up?

---

<div class="post-metadata">

**Author:** ![gilzow](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/gilzow/32/4739_2.png) [@gilzow](https://community.localwp.com/u/gilzow)\
**Post date:** [May 31, 2017, 3:03pm UTC](https://community.localwp.com/t/enable-ldap-in-php/1593/3 "2017-05-31T15:03:59Z")

</div>

We use LDAP authentication on all of our sites via [wpDirAuth](https://wordpress.org/plugins/wpdirauth/). It’s not a huge issue; just something we’ll need to be aware of when moving sites live, and then when editing them locally.

If you _can_ add in LDAP support, that would be fantastic.

---

<div class="post-metadata">

**Author:** ![triplett](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@triplett](https://community.localwp.com/u/triplett)\
**Post date:** [August 3, 2018, 9:18pm UTC](https://community.localwp.com/t/enable-ldap-in-php/1593/4 "2018-08-03T21:18:01Z")

</div>

This would be a great feature

---

<div class="post-metadata">

**Author:** ![doofusdavid](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/doofusdavid/32/6895_2.png) [@doofusdavid](https://community.localwp.com/u/doofusdavid)\
**Post date:** [January 15, 2019, 6:06pm UTC](https://community.localwp.com/t/enable-ldap-in-php/1593/5 "2019-01-15T18:06:12Z")

</div>

Even a description of how to install php-ldap into the docker container would be helpful. I did the basics…ssh-ed in, apt-get install php-ldap, but that didn’t do the trick. If there was a brief description of either how to modify the docker-compose (I’m assuming) template for a site, or how to add modules to an existing site, that would be great!

---

<div class="post-metadata">

**Author:** ![iamfriendly](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/iamfriendly/32/7013_2.png) [@iamfriendly](https://community.localwp.com/u/iamfriendly)\
**Post date:** [February 6, 2019, 10:30pm UTC](https://community.localwp.com/t/enable-ldap-in-php/1593/6 "2019-02-06T22:30:54Z")

</div>

I’d love to bump this, too. connecting to an external ldap server is pretty important to our operations and is somewhat hampering our usage of Local. Any chance of a hint in the right direction here, Clay?

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 25, 2020, 6:31pm UTC](https://community.localwp.com/t/enable-ldap-in-php/1593/7 "2020-08-25T18:31:55Z")

</div>

Closed on August 25, 2020, 6:31pm UTC


