Open vijaykumargumadi opened 3 years ago
screen shot:
Hi,
this happens because the TLS certificate used inside of the container is not trusted by your host OS (due to it being self-signed).
You'll have to copy the ca.crt
out of the container and import it in your host OS trust store (Example for Ubuntu).
But you should consider to Use your own certificate as otherwise the certificate will always be newly generated when creating a new container.
Oh, another method would be to create an .ldaprc
file in your home directory and set TLS_REQCERT never
in there. This tells ldapsearch (and the other LDAP cli tools) to not verify the certificate provided by the LDAP server.
You also have to make sure to set the LDAP_TLS_VERIFY_CLIENT environment variable of the container to something other than the default demand
(which will require the connecting client to also provide a client certificate). Possible values are never
, allow
, try
, for a description what each of these do see here.
while i am doing ldapsearch with startTLS inside the container it shows success message,
when connectiing from outside container with startTLS it shows error as :