Open Marketos-Damigos opened 2 years ago
Hi, @Marketos-Damigos Do you fix it finally? When I use bitnami/opneldap, I encounter the same issue. ><
You have to set the port to 389 inside the container when using internal docker network. You can do that with
- LDAP_PORT_NUMBER=389
- LDAP_LDAPS_PORT_NUMBER=636
Hi, @baba2k Thanks for your comment. :) It works fine.
This is still a problem for me
services:
ldap-server:
image: osixia/openldap:1.5.0
environment:
- LDAP_ORGANISATION="My Co"
- LDAP_DOMAIN="myco.co.uk"
- LDAP_ADMIN_PASSWORD="fjfjsdf;sd"
- LDAP_PORT_NUMBER=389
- LDAP_LDAPS_PORT_NUMBER=636
ldap-admin:
depends_on:
- ldap-server
image: osixia/phpldapadmin:0.9.0
environment:
- PHPLDAPADMIN_LDAP_HOSTS=ldap-server
ports:
- 443:443
Unable to connect to LDAP server ldap
Error: Can't contact LDAP server (-1) for user
Please help
Isn't this the osixia repo? Can I get help for osixia images here?
Can I get some help with this please?
I checked that the docker container could resolve the host name. It could not. I added a docker network to the stack and specified container names (not that this has any bearing on name resolution, just pointing out what I have done differently)
I am able to submit an LDAP query in the LDAP container. I am able to ping the LDAP container from the LDAP-ADMIN container.
The problem persists.
Latest compose file
services:
ldap-server:
container_name: ldap-server
image: osixia/openldap:1.5.0
environment:
- LDAP_ORGANISATION=myco
- LDAP_DOMAIN=myco.co.uk
- LDAP_ADMIN_PASSWORD=itsasecret
- LDAP_PORT_NUMBER=389
- LDAP_LDAPS_PORT_NUMBER=636
ports:
- 636:636
- 389:389
networks:
- ldap-network
ldap-admin:
container_name: ldap_admin
depends_on:
- ldap-server
image: osixia/phpldapadmin:0.9.0
environment:
- PHPLDAPADMIN_LDAP_HOSTS=ldap-server
ports:
- 443:443
networks:
- ldap-network
networks:
ldap-network:
driver: bridge
I am getting this error message when I try to login to the server as in #29 :
If i use
ldapsearch
inside the container, using either theenv
variable or directly specifyingopenldap:1389
it works perfectly. I have the followingdocker-compose
file: