On Sat 07 Jul 2007, Hugh Messenger wrote:
> [Changed the subject back again.  I have a bad habit of forgetting to
> change it from the digest subject when I respond.  Time to switch lists, I
> guess.]
>
> Peter Nixon <[EMAIL PROTECTED]> said:
> > >   if ("%{control:Pool-Name}") {
> > >           if ("%{control:Huntgroup-Name" == "dialup") {
> > >                   sqlippool_dialup
> > >           }
> > >           elsif ("%{control:Huntgroup-Name" == "wireless") {
> > >                   sqlippool_wireless
> > >           }
> > >   }
> >
> > Nope. Accounting does not know which Pool-Name was used, or even IF a
> > pool was used or not....
>
> Doh!  And I'd just finished explaining how I set the Pool-Name up in the
> authorize section.  Slaps forehead.

:-)

> Does the Huntgroup-Name get set during accounting?  I may not know the
> pool name, but if I know the Huntgroup, I know which instance of sqlippool
> I'll need.

The accounting module only knows that things that are present in the 
accounting packet, not things that you have applied based on authX steps. 
Check out /etc/raddb/acct_users

Huntgroups should still work for accounting but have not used them myself.


-- 

Peter Nixon
http://www.peternixon.net/
PGP Key: http://www.peternixon.net/public.asc
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to