Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

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.

Requirements

Activity

Total releases
4
First release
Jun 2025
Latest release
8 months ago
Releases (12 mo)
2
Maintenance
Slowing

Release Timeline

Releases

Version Type Release date
1.0.0 Stable Oct 30, 2025
1.1.0-beta1 Pre-release Sep 10, 2025
1.0.0-beta1 Pre-release Jul 10, 2025
1.0.x-dev Dev Jun 12, 2025