Policy.conf - multiple @

John Horne john.horne at plymouth.ac.uk
Wed Nov 28 14:09:44 CET 2012


Hello,

Just taking a look at the FreeRadius 2.2 policy.conf file, and noticed
this section:

=====================================
#
#  reject Multiple @'s
#  e.g. "user at site.com@site.com"
#
if(User-Name =~ /@(.+)?@/i ) {
=====================================

Would this not be simpler just by using '/@.*@/' ?





John.

-- 
John Horne                   Tel: +44 (0)1752 587287
Plymouth University, UK      Fax: +44 (0)1752 587001


More information about the Freeradius-Users mailing list