Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to sync the email address in Wekan when the users has been import from LDAP with other mail #83

Open
homero10 opened this issue Jun 3, 2020 · 5 comments

Comments

@homero10
Copy link

homero10 commented Jun 3, 2020

I have the issue with the LDAP sync mail.

The users, initially, not mail address asigned, and Wekan created the email using the LDAP_DEFAULT_DOMAIN in docker-compose file.

Now, for each users, from the LDAP server has been assigned an email adreess, but don't sync in Wekan.

This is my docker-compose file:

- LDAP_EMAIL_MATCH_ENABLE=true
  #
  # LDAP_EMAIL_MATCH_REQUIRE : require existing account matching by e-mail address when username does match
  - LDAP_EMAIL_MATCH_REQUIRE=true
  #
  # LDAP_EMAIL_MATCH_VERIFIED : require existing account email address to be verified for matching
  - LDAP_EMAIL_MATCH_VERIFIED=true
  #
  # LDAP_EMAIL_FIELD : which field contains the LDAP e-mail address
  - LDAP_EMAIL_FIELD=mail
  #-----------------------------------------------------------------
  - LDAP_SYNC_USER_DATA=true
  #
  - LDAP_SYNC_USER_DATA_FIELDMAP={"cn:name" , "mail":"email"}
  #

Any idea? Thanks

@xet7
Copy link
Member

xet7 commented Jun 3, 2020

You have extra spaces in fieldmap.

@homero10
Copy link
Author

homero10 commented Jun 3, 2020

I modified by - LDAP_SYNC_USER_DATA_FIELDMAP={"cn:"name","mail":"email"}
but don't works

@xet7
Copy link
Member

xet7 commented Jun 3, 2020

@svenseeberg
Copy link
Contributor

svenseeberg commented Jun 19, 2020

I'm having the same issue. Has anyone found a documented solution?

*edit: sorry, my problem is different: users have an e-mail address synchronized when being created, but it does not update if changed in the LDAP source. But it could be the same reason, I guess.

I'm using the following configuration options:

LDAP_SYNC_USER_DATA_FIELDMAP={
         "mailPrimaryAddress": "email",
         "uid": "name"
}
LDAP_EMAIL_FIELD=mailPrimaryAddress
LDAP_SYNC_USER_DATA=true

@svenseeberg
Copy link
Contributor

So I found that my issue was a not running sync. The sync interval values I entered (number in quotes) was not accepted. Now I see at least that it is doing something. However, in my case there are even more issues which I did not solve yet. The log prints [DEBUG] search filter "(|(=seebersv))" which seems broken to me. Not sure which setting to touch for this.

I guess a more detailed example with working values would be useful. I think I can share mine as soon as everything works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants