Open yawboateng opened 7 years ago
Why are you providing both insecureSkipVerify
and a rootCA
? If you have the latter you don't need the former.
We're just printing the error from the LDAP library we're using https://github.com/go-ldap/ldap.
Maybe we're mixing up LDAPS and LDAP with TLS negotiation?[0] What server are you using?
Yea, tested with one of those options at a time, but same error and not much info in the logs
im running IBM Directory Server 6.3
There's some more details here: https://github.com/coreos/dex/pull/908
IBM Directory Server should support LDAPS[0]. Do you have ldapsearch available, or an equivalent tool? What happens when you use those to connect to port 636?
ldapsearch connects fine with the following:
openssl s_client -showcerts -connect <ldapHost>:636 </dev/null | openssl x509 -outform PEM -out /tmp/cacert.pem; env LDAPTLS_CACERT=/tmp/cacert.pem ldapsearch -x -H ldaps://<ldapHost>:636
simple connect response:
# extended LDIF
#
# LDAPv3
# base <> (default) with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# search result
search: 2
result: 0 Success
# numResponses: 1
Is this still an issue?
@ericchiang, yes, still an issue. running the latest release. that insecureSkipVerify flag doesnt seem to have any effect.
that insecureSkipVerify flag doesnt seem to have any effect.
Little confused by that. Based on my testing this does work https://github.com/coreos/dex/pull/1096
running dex with ldap insecureSkipVerify set to true returns the error below:
017-04-12T14:54:26.707945506Z time="2017-04-12T14:54:26Z" level=error msg="Failed to login user: failed to connect: LDAP Result Code 200 \"\": remote error: tls: handshake failure"
setting the flag to false also returns the same error, any help on what might be causing this? and is it possible to get more information in the logs?