Pool-Name from Called-Station-Id

Alan DeKok aland at deployingradius.com
Wed May 9 16:00:04 CEST 2007


Hugh Messenger wrote:
> Is there some way I can make this generic, so I don't have to add each one 
> to the users file seperately?  Conceptually, it'd be like ...
> 
> DEFAULT Called-Station-Id == /^(\w+_pppoe_\d+)$/, Pool-Name := "$1"

$ man users
...

  Also see doc/variables.txt.


DEFAULT	Called-Station-Id =~ "^(\w+_pppoe_\d+)$", Pool-Name := `%{1}`

\w && \d may not be supported by the regex library on your system.  You
may have to use [a-fA-F] etc. explictely.

  Alan DeKok.
--
  http://deployingradius.com       - The web site of the book
  http://deployingradius.com/blog/ - The blog



More information about the Freeradius-Users mailing list