docker-openldap icon indicating copy to clipboard operation
docker-openldap copied to clipboard

client can't connect ldap in docker

Open junfenggood opened this issue 3 years ago • 4 comments

I deploy ldap with docker,use centos7.7, Ican edit it with PHPldap admin or ldapadmin,but when I add client ,I con't change user .also i use ldap search cmd to search user return error 32, no such object. but when i use php ldap admin,i can see the use. verison is:1.3 I also chenge os to centos8, got same error

junfenggood avatar Mar 24 '22 15:03 junfenggood

Hello, Did you run your container with a command like the one bellow? docker run -p 389:389 -p 636:636 --name my-openldap-container --detach osixia/openldap:1.5.0 because both port 389 (ldap) and 636 (ldaps) must be exposed if you want an external client to be able to connect to your OpenLDAP instance.

KokutoSan avatar Mar 29 '22 06:03 KokutoSan

Hello, I have the same issue, the ports are exposed,

alciviades avatar Jun 09 '22 14:06 alciviades

docker run \
-p 389:389 -p 636:636 \
--name ldap-service \
--hostname ldap-service \
--env LDAP_ORGANISATION="spi" \
--env LDAP_DOMAIN="spi.com" \
--env LDAP_ADMIN_PASSWORD="admin" \
--env LDAP_BASE_DN="dc=spi,dc=com" \
--volume /data/slapd/database:/var/lib/ldap \
--volume /data/slapd/config:/etc/ldap/slapd.d \
--detach osixia/openldap:1.5.0

alciviades avatar Jun 09 '22 14:06 alciviades

Here it works!

joaoepj avatar Oct 03 '22 11:10 joaoepj