pool-key issue in rlm_sqlippool

Peter Nixon listuser at peternixon.net
Sat Jul 7 20:52:27 CEST 2007


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 <listuser at peternixon.net> 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



More information about the Freeradius-Users mailing list