Skip to content

LDAP: cannot login with users with jpegPhoto attribute #18831

@sveatlo

Description

@sveatlo

Description:

LDAP users with jpegPhoto attribute cannot log in to RC. A login attempt fails with error stating, that the user wasn't found or the password is incorrect. After removing this attribute, the user can log in normally.

Steps to reproduce:

  1. Add jpegPhoto attribute via ldapmodify
  2. Try logging in - error
  3. Remove jpegPhoto attribute via ldapmodify
  4. Log in successfully

Expected behavior:

Users with avatars in LDAP should be able to log in normally. (Plus the avatar should be synced)

Actual behavior:

Cannot log in with LDAP users with jpegPhoto attribute

Server Setup Information:

  • Version of Rocket.Chat Server: 3.6.0
  • Operating System: linux
  • Deployment Method: tar
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: v12.16.1
  • MongoDB Version: 4.2.8

Additional context

I'm not completely sure, but I have a feeling, this wasn't problem with 3.5.x versions.

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