Skip to content

Commit

Permalink
Fix: Use paging while importing LDAP users to avoid result set size l…
Browse files Browse the repository at this point in the history
…imits. Fixes #461
  • Loading branch information
derwok committed Sep 7, 2018
1 parent eb28115 commit b8ee6e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imports/ldap/getLDAPUsers.js
Expand Up @@ -81,7 +81,7 @@ let _fetchLDAPUsers = function (connection) {
scope = 'sub',
whiteListedFields = _.get(settings, 'whiteListedFields', []),
attributes = whiteListedFields.concat(['userAccountControl', searchDn, userLongNameAttribute, emailAttribute]),
options = {filter, scope, attributes};
options = {filter, scope, attributes, paged: true};

if (settings.isInactivePredicate && !settings.inactiveUsers) {
settings.inactiveUsers = {
Expand Down

0 comments on commit b8ee6e9

Please sign in to comment.