I have the following entry in my users file:

 

DEFAULT         Cisco-AVPair =~ "ssid=(.*)", Group := “%{1}”

 

I added a perl module after files in my authorize section and data::dumper’ed %RAD_REQUEST, %RAD_CHECK and %RAD_CONFIG for debugging purposes.  The Cisco-AVPair value in the request is “ssid=EE-Corp”.  I would expect that the value of Group would be “EE-Corp”.  Instead, the value of Group was “(.*)”.  I tried using backticks around the %{1}.  I tried “=” as opposed to “:=”. 

 

Also, the Group attribute was added to %RAD_CHECK as opposed to %RAD_REQUEST (Group was not an attribute in the original request).  This prevented me from using module checkval to test it.  I ended up using the attr_rewrite module to change Cisco-AVPair so it could be tested by checkval.. 

 

So, if it’s supported, what is the syntax for regex pattern matching and substitution in the users file?  Also, if it’s possible, what is the syntax to create a new request attribute in the users file?

 

Thank you for creating/supporting/maintaining the best and most flexible Radius server.

 

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to