Open stodge opened 3 years ago
I had this error and I could debug it by using
-d 9
LDAPTLS_CERT=$(pwd)/mail.williamdes.eu.org.cer
LDAPTLS_KEY=$(pwd)/mail.williamdes.eu.org.key
LDAPTLS_CACERT=$(pwd)/ca.cer
ldapsearch -d 9 -Z -h ldap.mail.williamdes.eu.org -D "cn=John Pondu,ou=people,dc=mail,dc=williamdes,dc=eu,dc=org" -w 'JohnPassWord!645987zefdm' "*" -b "cn=John Pondu,ou=people,dc=mail,dc=williamdes,dc=eu,dc=org"
You can find more examples in https://github.com/desportes/infrastructure
Fixed by using ENVs on the CLI call
TLS: peer cert untrusted or revoked (0x42)
TLS: can't connect: (unknown error code).
ldap_err2string
ldap_start_tls: Connect error (-11)
additional info: (unknown error code)
Fixed by adding the host to the cert
TLS: hostname (ldap.mail.williamdes.eu.org) does not match common name in certificate (mail.williamdes.eu.org).
TLS: can't connect: (unknown error code).
ldap_err2string
ldap_start_tls: Connect error (-11)
additional info: (unknown error code)
I am running OpenLDAP in a container, my docker command is:
My client website can connect and get users over a regular connection, but fails using StartTLS:
The client website is a HumHub installation, and it only reports an error 91. A quick browse gives me:
the LDAP client has lost either its connection or cannot establish a connection to the LDAP server
Which doesn't tell me anything.
Any suggestions appreciated.
Thanks