[RADIATOR] Handler regex for User-Name matching help

Gregory Fuller gregory.fuller at oswego.edu
Fri Sep 10 09:44:09 CDT 2010


I'm trying to match a handler clause when the User-Name attribute is
NOT equal to a particular regex statement.

User-Name is:  CP-7942G-SEP2893FE127C54

My Handler statement that does match the User-Name is:

<Handler Client-Identifier=SWITCHES, NAS-Port-Type=Ethernet,
EAP-Message = /.+/, User-Name = /(.+)SEP([0-9a-fA-F]{12})$/>


Any idea how I can use a regex to match all User-Name values that DO
NOT equal /(.+)SEP([0-9a-fA-F]{12})$/

I was hoping I could just do a "User-Name !=
/(.+)SEP([0-9a-fA-F]{12})$/" on the handler line but Radiator doesn't
like that syntax.  :(  Here's what it returns:

Fri Sep 10 09:09:09 2010: ERR: Bad attribute=value pair: User-Name !=
/(.+)SEP([0-9a-fA-F]{12})$/

--greg


Gregory A. Fuller - CCNA
Network Manager
State University of New York at Oswego
Phone: (315) 312-5750
http://www.oswego.edu/~gfuller


More information about the radiator mailing list