Rocket.chat: Setting Search Page Size in LDAP options makes ldap logins fail

Created on 23 Nov 2017  ·  7Comments  ·  Source: RocketChat/Rocket.Chat

Description:

Using 0.59.3 with LDAP authentication enabled, using "Page Size" causes all ldap based logins to fail with:

 20171123-09:46:49.279(0) LDAP ➔ Search.info Searching user testuser
 20171123-09:46:49.280(0) LDAP ➔ Search.debug searchOptions { filter: '(&(&(objectclass=WEBIDUSER)(ENTITLEMENTGRANTED=SomeFlag--NR))(uid=testuser))',   scope: 'sub',   sizeLimit: 1000,   paged: { pageSize: 500, pagePause: false } } 
 20171123-09:46:49.281(0) LDAP ➔ Search.debug BaseDN o=Customers 
 20171123-09:46:49.455(0) rocketchat_logger rocketchat_logger.js:375 LDAP ➔ Search.error { [PagedError: missing paged control] name: 'PagedError' } 
 20171123-09:46:49.462(0) rocketchat_logger rocketchat_logger.js:375 LDAPHandler ➔ error { [PagedError: missing paged control] name: 'PagedError' } 
 20171123-09:46:49.464(0) LDAPHandler ➔ info Fallback to default account system { username: 'testuser' } 

Server Setup Information:

  • Version of Rocket.Chat Server: 0.59.3
  • Operating System: Linux
  • Deployment Method(snap/docker/tar/etc): docker image
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Disabled
  • Node Version: v4.8.4

Expected behavior:

LDAP search should succeed (user search does succeed when paging is disabled)

Most helpful comment

Same here, we are using openDJ as LDAP Server.

All 7 comments

We are also having this problem. After upgrade to latest version all logins fail with the same error message.

Maybe its the code added in:
https://github.com/RocketChat/Rocket.Chat/commit/1945cd311482ed528292835274c5059f10ffae19#diff-0d16468d7772d767bd1795c5f0e7d2d2

We're affected of this problem too. 👍

Yes us to

Same here, we are using openDJ as LDAP Server.

Same problem here. Setting Login Fallback to yes seems to have helped me.

Same here on version 0.62.2.

Also affected. My ldap server doesn't handle pagination.
Changed the pageSize parameter to -1 made it work.

Was this page helpful?
0 / 5 - 0 ratings