Hello,
I have OOD working using basic auth + PAM, but am in the process of migrating to Dex. When I try to login to the OOD portal with Dex, I get the following error:
Internal Server Error
Login error: ldap: entry “uid=XXX,ou=people,dc=engr,dc=oregonstate,dc=edu” missing following required attribute(s): [“mail”]
There isn’t a “mail” attribute, so I removed that entry and now I get this error:
Login error: ldap: entry “uid=XXX,ou=people,dc=engr,dc=oregonstate,dc=edu” missing following required attribute(s): [""]
Here is the dex portion of my ood_portal.yml:
dex:
connectors:
- type: ldap
id: ldap
name: LDAP
config:
host: XXX:636
insecureSkipVerify: false
bindDN: cn=XXX,dc=engr,dc=oregonstate,dc=edu
userSearch:
baseDN: ou=people,dc=engr,dc=oregonstate,dc=edu
filter: “(objectClass=posixAccount)”
username: uid
idAttr: uid
#emailAttr: mail
nameAttr: gecos
preferredUsernameAttr: uid
groupSearch:
baseDN: ou=group,dc=engr,dc=oregonstate,dc=edu
filter: “(objectClass=posixGroup)”
userMatchers:
- userAttr: DN
groupAttr: member
nameAttr: cn
Any ideas what could be wrong here?
Thanks,
Rob