reduce UWLDAP batch size to 10

This commit is contained in:
Max Erenberg 2023-02-13 17:34:49 -05:00 committed by Daniel Sun
parent 2be3968f23
commit 744d64480a
1 changed files with 3 additions and 1 deletions

View File

@ -316,7 +316,9 @@ class LDAPService:
self,
dry_run: bool = False,
members: Union[List[str], None] = None,
uwldap_batch_size: int = 100,
# The UWLDAP server currently has a result set limit of 50
# Keep it low just to be safe
uwldap_batch_size: int = 10,
):
if members:
filter = '(|' + ''.join([f'(uid={uid})' for uid in members]) + ')'