username_regex acl

From: Rodney McDuff <ccmcduff@dont-contact.us>
Date: Wed, 06 Oct 1999 17:15:29 +1000

Hi
        Before I reinvent the wheel, does any body have a username_regex acl
patch. Something along the lines of:

acl specific_pages url_regex ^http://a.server.com/path
acl any_auth_user proxy_auth REQUIRED
acl just_this_user_class username_regex ^zz

http_access allow specific_pages any_auth_user just_this_user_class

We have a large user base consisting of ~30k students, ~6K staff and ~10k
externals. The username are related to their class; students start with a 's',
externals with a 'zz' and so on. Rather than doing a

acl just_these_auth_user proxy_auth "/path/to/a_very_long_list_of_users"

a regex on proxy_auth username should be much more effiecent. It could also
work on ident lookups aswell.

acl specific_pages url_regex ^http://a.server.com/path
acl any_ident_user ident REQUIRED
acl just_this_user_class username_regex ^zz

http_access allow specific_pages any_ident_user just_this_user_class

-- 
  +-----------------+------------------------------------------+
  |    _   ^   _    | Dr. Rodney McDuff                        |
  |   |\  /|\  /|   | Network Development, ITS                 |
  |     \  |  /     | The University of Queensland             |
  |      \ | /      | St. Lucia, Brisbane                      |
  |       \|/       | Queensland, Australia. 4072.             |
  |<-------+------->| TELEPHONE: +61 7 3365 8220               |
  |       /|\       | FACSIMILE: +61 7 3365 4477               |
  |      / | \      | EMAIL: mcduff@its.uq.edu.au              |
  |     /  |  \     |                                          |
  |   |/  \|/  \|   |        Ex ignorantia ad sapientiam       |
  |    -   v   -    |            Ex luce ad tenebras           |
  +-----------------+------------------------------------------+
Received on Wed Oct 06 1999 - 01:32:22 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:48:44 MST