# \[solved\] Use Yunohost as a LDAP server (connect other machines to it)

**URL:** https://forum.yunohost.org/t/solved-use-yunohost-as-a-ldap-server-connect-other-machines-to-it/2865
**Category:** Advanced use case
**Tags:** english
**Created:** [May 10, 2017, 12:46pm UTC](https://forum.yunohost.org/t/solved-use-yunohost-as-a-ldap-server-connect-other-machines-to-it/2865 "2017-05-10T12:46:57Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![ashledombos](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ashledombos/32/2583_2.png) [@ashledombos](https://forum.yunohost.org/u/ashledombos)
#### Post date: [February 6, 2020, 9:32pm UTC](https://forum.yunohost.org/t/solved-use-yunohost-as-a-ldap-server-connect-other-machines-to-it/2865/12 "2020-02-06T21:32:55Z")

</div>

> [@maxder](#):
>
> in `/etc/default/slapd` comment out this line `SLAPD_SERVICES="ldap://127.0.0.1:389/ ldaps:/// ldapi:///"` to unbind the local binding

Just be careful not to mess with ldap, this is central part of Yunohost machine.

from my experience:

I wanted to be clever and allow the docker containers to connect to Idap.  
So I added in the line `ldap://172.17.0.1:389/` instead of commenting. It worked but later I had a hard time. At the next reboot, as the docker interface is mounted after ldap is up, the ldap service was failing and I was locked out of the system (needed direct access to the machine to connect as root)…

Finally I just commented the line and added a special IPtables rule instead.

edit: as mentioned by several posters above, **commenting the line creates another kind of mess** , admin is unable to access ldap… (with this error: `Exception AttributeError: "'Authenticator' object has no attribute 'con'" in <bound method Authenticator. __del__ of <moulinette.authenticators.ldap.Authenticator object at 0x7f5d68adfa50>> ignored.`)  
I did not try yet but maybe it’s better to put ldap:/// instead.

---

_[View the full topic](https://forum.yunohost.org/t/solved-use-yunohost-as-a-ldap-server-connect-other-machines-to-it/2865)._
