This module prevents the automatic recreation of Drupal user accounts based on CAS usernames. When a user is deleted, you can choose to also ban their CAS username, ensuring they cannot log in and have their account automatically recreated on subsequent CAS logins.
The CAS User Ban module prevents the creation of users based on their CAS username.
When you delete a user, the module adds an option to ban the account, blocking future account regeneration.
Why this is useful?
CAS module can be configured to automatically create Drupal accounts on first-time CAS logins.
If a user has produced unwanted content (e.g., spam) and you delete both the user and their content, the account can be recreated on the next login.
This module lets you delete + ban in one step, so the user cannot log in again because the account won’t be recreated.
Note: The module does not prevent user login for existing users with a related banned CAS username.