Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

phess
Copy link

@phess phess commented Nov 7, 2023

Attempting to resolve Issue #354 .

This PR allows an application admin to set an optional interval in seconds within which _LDAPUser._get_or_create_user() will not call self._user.save() for the same user again.

The intended use is to set AUTH_LDAP_ALWAYS_UPDATE_USER_THROTTLE_SEC to small single-digit values, e.g. 3, thereby capping ldap-auth-related SQL UPDATE "auth_user"... commands to no more than 1 every 3 seconds (down from something like 20 every 3 seconds like I recently saw).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant