# \[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:** 15

<div class="post-metadata">

### Author: ![scharc](https://forum.yunohost.org/user_avatar/forum.yunohost.org/scharc/32/2726_2.png) [@scharc](https://forum.yunohost.org/u/scharc)
#### Post date: [April 22, 2021, 8:27pm UTC](https://forum.yunohost.org/t/solved-use-yunohost-as-a-ldap-server-connect-other-machines-to-it/2865/15 "2021-04-22T20:27:07Z")

</div>

If you do not want to expose your LDAP to the public you could use ssh instead:

Steps to reproduce:

On Maschine where you need the LDAP Server (not yunohost)

ssh -T -L 2389:localhost:389 yunohost-server

you should use admin account for ssh otherwise you have to allow TCPforwarding for the ssh account

I wanted to install zammad on a different server then yunohost but still be able to use ldap of yunohost…

so I am using autossh to allways have the local port 2389 forwarded to 389 on yunohost.

I am using this settings in LDAP config of zammad:

LDAP Host: lpad://localhost:2389  
Base DN: dc=yunohost,dc=org  
Bind User: cn=admin,dc=yunohost,dc=org  
Bind Password: Password of admin account

---

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