Hello,
Is it possible to get Dex OpenLDAP to use TLS cert for connection?
Trying to get an OOD install integrated with a Bright cluster’s provided OpenLDAP.
- The host that OOD is installed on is integrated (pam_ldap) so base auth tested working.
- OOD and Dex are configured with SSL certificates and portal comes up.
- OpenLDAP in Bright requires TLS certificate to connect.
The following error shows up on attempting login.
Internal Server Error
Login error: ldap: initial bind for user “cn=readonlyroot,dc=cm,dc=cluster” failed: unable to read LDAP response packet: remote error: tls: certificate required
These are the certificates listed in LDAP client configuration:
TLS_CACERT /cm/local/apps/openldap/etc/certs/ca.pem
TLS_CERT /cm/local/apps/openldap/etc/certs/ldap.pem
TLS_KEY /cm/local/apps/openldap/etc/certs/ldap.key
This is current dex ldap configuration (copied ca.pem out of location above to ldapca.pem below)
dex_uri: /dex
dex:
ssl: true
connectors:
- type: ldap
id: ldap
name: LDAP
config:
host: ldapserver:636
insecureSkipVerify: false
rootCA: /cm/shared/certs/ldapca.pem
bindDN: cn=readonlyroot,dc=cm,dc=cluster
bindPW: jumbles
userSearch:
baseDN: dc=cm,dc=cluster
filter: "(objectClass=posixAccount)"
username: uid
idAttr: uid
emailAttr: mail
nameAttr: gecos
preferredUsernameAttr: uid