Re: Pool-Name from Called-Station-Id



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




This archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc.