Open kevdogg opened 4 years ago
not sure if it applies or not... but could your adminldap be telling openldap to look for domain "openldap" instead of "domain.com"? try changing the name of the openldap container to match the domain.com you are useing? that way the headers passed contain the correct domain? and you may want to use a static ip with the openldap docker container so you can also add the ldap.domain.com to the hosts file so your dns points back inside? im kinda new to openldap so not sure if it cares about what domain you are coming from or not but might be worth a try?
Did you configure ldap utils to use the certificate?
/etc/openldap/ldap.conf /etc/openldap/certs/* ~/.ldaprc
i also met this problem, have you resolved? i remembered it works well a few days ago @kevdogg
i use the default certs.
I can't seem to get TLS functioning properly from the client. I'm using an Arch Linux host with docker images osixia/openldap:latest and osixia/phpldapadmin:latest
I created self-signed client and server certificate files. I created the server with a CN and Subject Alternative Names. Here is a snipped of my server certificate:
The client certificate was created and signed by the same CA:
The openldap container within the docker network is simply reachable via openldap.
Here is my docker-compose file:
From the Arch linux docker host I'm able to reach the openldap container using the generated client cert.pem and key.pem:
I've also verified without TLS I can query the database from the docker host:
When I try to invoke TLS from the docker host however I receive a ldap_start_tls: Connect error (-11):
Examining the logs of the docker container (docker logs openldap), I get the following:
From within the openldap container however I'm able to run the same query and things seem to work:
I tried running the same query from within the phpldapadmin container and received the same errors I received from the docker host.
I don't understand the error:
TLS: can't accept: No certificate was found..
. From within the openldap container the certs seem to be in place:What am I missing here?