Skip to content

LDAP Sync: final batch not processed (without pagination) #9279

@sscholl

Description

@sscholl

Description:

I use LDAP without pagination (by setting LDAPP_Search_Page_Size to 0), because my LDAP Server is not able to provide pragination. When I use the LDAP Sync Feature (by hand or by cronjob), 500 users are imported at maximum. I guess this is because of the missing pagination feature, but my LDAP sends all ~800 users.

Can you increase the default value or make it configurable?

Thank you!!!

Server Setup Information:

  • Version of Rocket.Chat Server: 0.60.1
  • Database Migration: 105
  • Operating System: linux 3.10.0-693.el7.x86_64 x64
  • Deployment Method(snap/docker/tar/etc): docker
  • Number of Running Instances: 1
  • Node Version: v8.9.3

Steps to Reproduce:

  1. Configure LDAP with more than 500 users
  2. set LDAPP_Search_Page_Size to 0
  3. set Search_Size_Limit to 1000
  4. Execute LDAP_Sync_Now

Expected behavior:

All LDAP Users shoud be imported (more than 500).

Actual behavior:

Only 500 users are imported.
After log message LDAPSync ➔ info Import running. Users imported until now: 500 import stops.

Relevant logs:

20171229-11:58:44.846(0) rocketchat_logger rocketchat_logger.js:278 LDAPSync ➔ info Import running. Users imported until now: 500

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions