I would like to use the YH LDAP as a LDAP server for some containerized app. I can perfom ldapsearch from the host machine SSH as expected. But from the shell within a container i can’t reach it
I tried with FQDN, ip, gateway IP, extra host, etc. I tried to add “slapd: ALL : ALL” in hosts.allow (at least to test) but i can’t reach the ldap from any container
Could you please put the output of sudo ss -tulnp | grep slapd ?
In my case, it listen on port 389 only for requests from 127.0.0.1, but on port 636 from anywhere.
I know nothing about slapd but it can give some hints.
So now that bookworm is up and running on my VPS i tested the connection to the LDAP
I have changed the file /etc/default/slapd to allow connection from docker and it works … but as said in the post below it will lock the server on the next reboot due to the startup sequence. I have to find another solution like redirect the outgoing flow from my container to the localhost 389 port