Hugh Messenger wrote:
> Any luck fixing this stuff:
> 
> DEFAULT Called-Station-Id =~ "^([A-z0-9]+_[0-9]+)$", Pool-Name := `%{0}`
>        Framed-IP-Netmask = 255.255.0.0,
>        Fall-Through = 1
> 
> ... in either users or hints?

  Don't use "users" or "hints".  Use the new unlanguage.

> If you recall, I'm trying to find a way of having just one DEFAULT for
> setting my sqlippool Pool-Name, rather than having to have 50+ individual
> entries.  So far no luck with the above mechanism in either users or hints
> files.

authorize {
        ...
        if (Called-Station-Id =~ /^([A-z0-9]+_[0-9]+)$/) {
                update config {
                        Pool-Name := "%{0}"
                }
                update reply {
                        Framed-IP-Netmask = 255.255.0.0
                }
        }
        ....
}

  Much easier to understand, I think.

  Alan DeKok.
--
  http://deployingradius.com       - The web site of the book
  http://deployingradius.com/blog/ - The blog
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to