patchinfo: 2166 Extra builtin rewrite function: tolower(string)
Maurice Makaay <[email protected]> Wed, 29 Oct 2003 22:52:12 +0100
| Newsgroups | gmane.comp.gnu.radius.bugs |
|---|---|
| Organization | InterNLnet BV |
| Message-ID | <[email protected]> |
2166 Extra builtin rewrite function: tolower(string)
----------------------------------------------------------------------
This builtin function can be used to add a level of case-insensitivity
to radius authentication. Our previous radius implementation didn't
care for case. We unfortunately we found out that we had a lot of
users depending on that :-( With this patch we can do:
raddb/rewrite
=============
integer
username_tolower()
{
%[User-Name] = tolower(%[User-Name]);
return 0;
}
radd/hints
==========
DEFAULT Rewrite-Function = "username_tolower" Fall-Through = "Yes"
----------------------------------------------------------------------
With kind regards,
Maurice Makaay
InterNLnet BV
The Netherlands