accounting - no huntgroups
Alan DeKok
aland at deployingradius.com
Wed Feb 13 10:35:56 CET 2008
Phil Mayers wrote:
> I've never had cause to look at it before, but I discovered today that
> accouting doesn't support huntgroups; specifically, an attempt to match
> on Huntgroup-Name in acct_users
>
> Is this expected?
The "preprocess" module doesn't do huntgroups for accounting requests.
This should be relatively easy to fix.
> How does one normally specify Acct-Type based on a
> huntgroup, if (say) the Class attribute is already being used?
In 2.0, much of the huntgroup functionality can be done with a little
bit of magic:
client foo {
ipaddr = 127.0.0.1
secret = x
huntgroup = foo # invent ANYTHING here! foo = bar, x = y, etc.
}
Then in unlang:
...
if ("%{client:huntgroup}" == "foo") {
...
}
i.e. you can use the configuration files to add arbitrary "tags" to a
client, and then check them at run time.
Alan DeKok.
More information about the Freeradius-Users
mailing list