reduce UWLDAP batch size to 10
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Max Erenberg 2023-02-13 17:34:49 -05:00
parent 754731ba5f
commit 239b992107
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]) + ')'