-
Notifications
You must be signed in to change notification settings - Fork 10
LDAP sync fails when user has multiple mail attributes #57
Comments
As a work-around, you can remove "LDAP_EMAIL_FIELD" variable from your env, and wekan let you login. |
Interesting - is that the only change you made to get it working? I can't see how removing the environment variable fixes the issue. |
Indeed, sorry I wasn't careful enough in my tests. What actually made it work was setting "LDAP_SYNC_USER_DATA_FIELDMAP" from {"displayName":"name","mail":"email"} to {"displayName":"name"}. So it seems related to sync fonctions. |
Yes, that makes sense considering it will no longer attempt to sync email address. Out of interest, could you expand a bit on the multiple mail attributes? Do you have multiple attributes for the user with the same name (i.e. more than one "email" attribute) or is it a multi valued attribute? Seeing an example LDAP user entry would be helpful. |
It is multi-valued attribute for a single user, in ldif format it would look like : mail: short@domain.tld |
Hi Team,
I'm doing some tests with Wekan on openshift, with LDAP Auth.
Login with a user with a single "mail" attribute works. Login with a user with multiple "mail" attributes doesn't.
Log :
Thank you
The text was updated successfully, but these errors were encountered: