wekan / ldap

LDAP support for Wekan code has been moved to https://github.com/wekan/wekan/tree/master/packages/wekan-ldap , issues to https://github.com/wekan/wekan/issues , and if PRs are needed please add them instead to https://github.com/wekan/wekan/pulls
https://github.com/wekan/wekan/tree/master/packages/wekan-ldap
MIT License
12 stars 10 forks source link

Can't sync LDAP when user already exist #79

Open savin-msk opened 4 years ago

savin-msk commented 4 years ago

I setup LDAP sync with OpenLDAP. Before that i have created user with same e-mail. During sync i have error:

[DEBUG] Identifying user with: uid
Apr 06 16:00:00 git wekan.wekan[2951]: [DEBUG] Identifying user with: uid
Apr 06 16:00:00 git wekan.wekan[2951]: [DEBUG] New user data {
Apr 06 16:00:00 git wekan.wekan[2951]:   "username": "user",
Apr 06 16:00:00 git wekan.wekan[2951]:   "email": "user@domain.com"
Apr 06 16:00:00 git wekan.wekan[2951]: }
Apr 06 16:00:00 git wekan.wekan[2951]: [ERROR] Error creating user {
Apr 06 16:00:00 git wekan.wekan[2951]:   "isClientSafe": true,
Apr 06 16:00:00 git wekan.wekan[2951]:   "error": 403,
Apr 06 16:00:00 git wekan.wekan[2951]:   "reason": "Email already exists.",
Apr 06 16:00:00 git wekan.wekan[2951]:   "message": "Email already exists. [403]",
Apr 06 16:00:00 git wekan.wekan[2951]:   "errorType": "Meteor.Error"
Apr 06 16:00:00 git wekan.wekan[2951]: }

Apr 06 16:00:00 git wekan.wekan[2951]: [DEBUG] Identifying user with: uid
Apr 06 16:00:00 git wekan.wekan[2951]: [ERROR] Error: LDAP Authentication succeded, there is no email to create an account. Have you tried setting your Default Domain
Apr 06 16:00:00 git wekan.wekan[2951]: Exception in callback of async function: errorClass [Error]: LDAP Authentication succeded, there is no email to create an accou
Apr 06 16:00:00 git wekan.wekan[2951]:     at addLdapUser (packages/wekan-ldap/server/sync.js:275:19)
Apr 06 16:00:00 git wekan.wekan[2951]:     at packages/wekan-ldap/server/sync.js:360:9
Apr 06 16:00:00 git wekan.wekan[2951]:     at Array.forEach (<anonymous>)
Apr 06 16:00:00 git wekan.wekan[2951]:     at packages/wekan-ldap/server/sync.js:327:15
Apr 06 16:00:00 git wekan.wekan[2951]:     at runWithEnvironment (packages/meteor.js:1286:24) {
Apr 06 16:00:00 git wekan.wekan[2951]:   isClientSafe: true,
Apr 06 16:00:00 git wekan.wekan[2951]:   error: 'LDAP-login-error',
Apr 06 16:00:00 git wekan.wekan[2951]:   reason: 'LDAP Authentication succeded, there is no email to create an account. Have you tried setting your Default Domain in
Apr 06 16:00:00 git wekan.wekan[2951]:   details: undefined,
Apr 06 16:00:00 git wekan.wekan[2951]:   message: 'LDAP Authentication succeded, there is no email to create an account. Have you tried setting your Default Domain in
Apr 06 16:00:00 git wekan.wekan[2951]:   errorType: 'Meteor.Error'
Apr 06 16:00:00 git wekan.wekan[2951]: }
Apr 06 16:01:00 git wekan.wekan[2951]: {"line":"87","file":"percolate_synced-cron.js","message":"SyncedCron: Starting \"LDAP_Sync\".","time":{"$date":1586178060008},"
Apr 06 16:01:00 git wekan.wekan[2951]: [WARN] Lookup for unset variable: INTERNAL_LOG_LEVEL
Apr 06 16:01:00 git wekan.wekan[2951]: [WARN] Lookup for unset variable: LDAP_USER_ATTRIBUTES```