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

Unable to create new account from LDAP #32

Closed GuiGuiSoft closed 5 years ago

GuiGuiSoft commented 5 years ago

Issue

Server Setup Information:

Problem description: Steps to reproduce

The error below seems to come from the registration page (invitation code blank) whereas the user just tried to login for the first time with LDAP.

logs

wekan.wekan[16543]: [INFO] Init LDAP login "userLoginLDAP"
wekan.wekan[16543]: [WARN] Lookup for unset variable: INTERNAL_LOG_LEVEL
wekan.wekan[16543]: [INFO] Init setup
wekan.wekan[16543]: [INFO] Connecting "ldap://ldap:389"
wekan.wekan[16543]: [DEBUG] connectionOptions{ url: 'ldap://ldap:389',
wekan.wekan[16543]:   timeout: 10000,
wekan.wekan[16543]:   connectTimeout: 10000,
wekan.wekan[16543]:   idleTimeout: 10000,
wekan.wekan[16543]:   reconnect: true,
wekan.wekan[16543]:   log:
wekan.wekan[16543]:    Logger {
wekan.wekan[16543]:      domain: null,
wekan.wekan[16543]:      _events: {},
wekan.wekan[16543]:      _eventsCount: 0,
wekan.wekan[16543]:      _maxListeners: undefined,
wekan.wekan[16543]:      _level: 30,
wekan.wekan[16543]:      streams: [ [Object] ],
wekan.wekan[16543]:      serializers: null,
wekan.wekan[16543]:      src: false,
wekan.wekan[16543]:      fields:
wekan.wekan[16543]:       { name: 'ldapjs',
wekan.wekan[16543]:         component: 'client',
wekan.wekan[16543]:         hostname: 'WEK-VM',
wekan.wekan[16543]:         pid: 17000 } } }
wekan.wekan[16543]: [INFO] LDAP connected
wekan.wekan[16543]: [INFO] Binding UserDN "CN=*****,OU=*****,OU=****,OU=****,dc=***,dc=***"
wekan.wekan[16543]: [INFO] Searching user "userLoginLDAP"
wekan.wekan[16543]: [DEBUG] searchOptions {
wekan.wekan[16543]:   "filter": "(&(samaccountname=userLoginLDAP))",
wekan.wekan[16543]:   "scope": "sub",
wekan.wekan[16543]:   "sizeLimit": 0
wekan.wekan[16543]: }
wekan.wekan[16543]: [DEBUG] BaseDN "dc=***,dc=***"
wekan.wekan[16543]: [INFO] Search result count 1
wekan.wekan[16543]: [INFO] Authenticating "CN=Full NAME,OU=****,OU=****,OU=*****,dc=***,dc=***"
wekan.wekan[16543]: [INFO] Authenticated "CN=Full NAME,OU=****,OU=****,OU=*****,dc=***,dc=***"
wekan.wekan[16543]: [DEBUG] Identifying user with: samaccountname
wekan.wekan[16543]: [INFO] Querying user
wekan.wekan[16543]: [DEBUG] userQuery {
wekan.wekan[16543]:   "services.ldap.id": "************"
wekan.wekan[16543]: }
wekan.wekan[16543]: [DEBUG] userQuery {
wekan.wekan[16543]:   "username": "userLoginLDAP"
wekan.wekan[16543]: }
wekan.wekan[16543]: [INFO] User does not exist, creating "userLoginLDAP"
wekan.wekan[16543]: [DEBUG] Identifying user with: samaccountname
wekan.wekan[16543]: [DEBUG] Identifying user with: samaccountname
wekan.wekan[16543]: [DEBUG] New user data {
wekan.wekan[16543]:   "username": "userLoginLDAP",
wekan.wekan[16543]:   "email": "userLoginLDAP@comp.com"
wekan.wekan[16543]: }
wekan.wekan[16543]: [ERROR] Error creating user {
wekan.wekan[16543]:   "isClientSafe": true,
wekan.wekan[16543]:   "error": "error-invitation-code-blank",
wekan.wekan[16543]:   "reason": "The invitation code is required",
wekan.wekan[16543]:   "message": "The invitation code is required [error-invitation-code-blank]",
wekan.wekan[16543]:   "errorType": "Meteor.Error"
wekan.wekan[16543]: }
wekan.wekan[16543]: [INFO] Idle
wekan.wekan[16543]: [INFO] Disconecting
wekan.wekan[16543]: [INFO] Closed