{"action":"created","issue":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/9279","repository_url":"https://api.github.com/repos/RocketChat/Rocket.Chat","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/9279/labels{/name}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/9279/comments","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/9279/events","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/9279","id":285082147,"number":9279,"title":"LDAP Sync: max import user count is 500","user":{"login":"sscholl","id":2964060,"avatar_url":"https://avatars1.githubusercontent.com/u/2964060?v=4","gravatar_id":"","url":"https://api.github.com/users/sscholl","html_url":"https://github.com/sscholl","followers_url":"https://api.github.com/users/sscholl/followers","following_url":"https://api.github.com/users/sscholl/following{/other_user}","gists_url":"https://api.github.com/users/sscholl/gists{/gist_id}","starred_url":"https://api.github.com/users/sscholl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sscholl/subscriptions","organizations_url":"https://api.github.com/users/sscholl/orgs","repos_url":"https://api.github.com/users/sscholl/repos","events_url":"https://api.github.com/users/sscholl/events{/privacy}","received_events_url":"https://api.github.com/users/sscholl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-29T12:01:24Z","updated_at":"2017-12-29T13:29:19Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"<!-- \r\n\r\nPlease see our guide for opening issues: https://rocket.chat/docs/contributing/reporting-issues\r\n\r\nIf you have questions or are looking for help/support please see: https://rocket.chat/docs/getting-support\r\n\r\nIf you are experiencing a bug please search our issues to be sure it is not already present: https://github.com/RocketChat/Rocket.Chat/issues\r\n\r\n-->\r\n\r\n### Description:\r\n\r\nI 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.\r\n\r\nCan you increase the default value or make it configurable? \r\n\r\nThank you!!!\r\n\r\n### Server Setup Information:\r\n\r\n* Version of Rocket.Chat Server: 0.60.1\r\n*  Database Migration: 105\r\n* Operating System: linux 3.10.0-693.el7.x86_64 x64\r\n* Deployment Method(snap/docker/tar/etc): docker\r\n* Number of Running Instances: 1\r\n* Node Version: v8.9.3\r\n\r\n\r\n### Steps to Reproduce:\r\n\r\n1. Configure LDAP with more than 500 users\r\n2. set LDAPP_Search_Page_Size to 0\r\n3. set Search_Size_Limit to 1000\r\n4. Execute LDAP_Sync_Now\r\n\r\n### Expected behavior:\r\n\r\nAll LDAP Users shoud be imported (more than 500).\r\n\r\n### Actual behavior:\r\n\r\nOnly 500 users are imported.\r\nAfter log message ```LDAPSync ➔ info Import running. Users imported until now: 500``` import stops.\r\n\r\n### Relevant logs:\r\n```20171229-11:58:44.846(0) rocketchat_logger rocketchat_logger.js:278 LDAPSync ➔ info Import running. Users imported until now: 500```\r\n"},"comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments/354446006","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/9279#issuecomment-354446006","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/9279","id":354446006,"user":{"login":"rodrigok","id":234261,"avatar_url":"https://avatars1.githubusercontent.com/u/234261?v=4","gravatar_id":"","url":"https://api.github.com/users/rodrigok","html_url":"https://github.com/rodrigok","followers_url":"https://api.github.com/users/rodrigok/followers","following_url":"https://api.github.com/users/rodrigok/following{/other_user}","gists_url":"https://api.github.com/users/rodrigok/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigok/subscriptions","organizations_url":"https://api.github.com/users/rodrigok/orgs","repos_url":"https://api.github.com/users/rodrigok/repos","events_url":"https://api.github.com/users/rodrigok/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigok/received_events","type":"User","site_admin":false},"created_at":"2017-12-29T13:29:19Z","updated_at":"2017-12-29T13:29:19Z","author_association":"OWNER","body":"@sscholl There is no hard limit in our code.\r\n\r\nWas it working before version 0.60? Could it be a hard search limit in your LDAP server configuration?"}}
{"actor":{"display_login":"rodrigok"}}