Next Previous Contents

2. What is authpcre?

authpcre is an authentication module for courier that modifies logging in usernames as specified by a list of perl regular expressions. The most common use of this module is to rewrite usernames to some standard form in order for courier to allow many different usernames to be authenticated.

For example, by just setting up few regular expressions, it would be possible to allow someuser@somedomain.com to log in even if he specifies as a username:

where someotherdomain users should move to somedomain.com. Obviously, some of you may find this useful while some others may find this as a security threat. Just beware and think twice before writing any regular expression.

The latest version of this document and authpcre is available at http://www.commedia.it/ccontavalli/.

If you have troubles/suggestions/corrections feel free to mail me at <ccontavalli at commedia.it>.


Next Previous Contents