Skip to content

Unable to login with LDAP user and customFields set #14661

@magicbelette

Description

@magicbelette

Description:

"User not found or incorrect password" trying to log in with LDAP account and customField set.

Steps to reproduce:

  1. Configure a custom field in Account settings
  2. Configure LDAP Auth with mapping to custom field
  3. Try to log on with LDAP account

Expected behavior:

User logged in and custom field is updated

Actual behavior:

"User not found or incorrect password"

Server Setup Information:

  • Version of Rocket.Chat Server: 1.1.0
  • Operating System: Debian
  • Deployment Method: tar
  • Number of Running Instances: 1
  • DB Replicaset Oplog: true
  • NodeJS Version: 8.12.0
  • MongoDB Version: 4.0.7

Relevant logs:

May 28 13:29:25 messi nodejs-rocketchat0[6200]: server.js:207 #033[34mLDAP ➔ Auth.info#033[39m Authenticated uid=xxxxxxxxxx
May 28 13:29:25 messi nodejs-rocketchat0[6200]: server.js:207 #033[34mLDAPHandler ➔ info#033[39m Querying user
May 28 13:29:25 messi nodejs-rocketchat0[6200]: server.js:207 #033[34mLDAPHandler ➔ debug#033[39m userQuery { 'services.ldap.id': '6a756c69656e2e7465737432' }
May 28 13:29:25 messi nodejs-rocketchat0[6200]: server.js:207 #033[34mLDAPHandler ➔ info#033[39m Logging user
May 28 13:29:25 messi nodejs-rocketchat0[6200]: server.js:207 #033[34mLDAPSync ➔ info#033[39m Syncing user data
May 28 13:29:25 messi nodejs-rocketchat0[6200]: server.js:207 #033[34mLDAPSync ➔ debug#033[39m user { email: undefined, _id: 'NzqnZts92RWZhjzSD' }
May 28 13:29:25 messi nodejs-rocketchat0[6200]: server.js:207 #033[34mLDAPSync ➔ debug#033[39m ldapUser undefined
May 28 13:29:25 messi nodejs-rocketchat0[6200]: Exception while invoking method 'login' TypeError: Cannot set property 'infom2' of undefined
May 28 13:29:25 messi nodejs-rocketchat0[6200]: at _.reduce (app/ldap/server/sync.js:145:9)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions