Variable passing between autz,acct stages

Ivan Kalik tnt at kalik.net
Sat Oct 17 21:46:11 CEST 2009


> Is it possible to pass a variable from authorization modules to
> accounting modules, (by using Tmp-String* attributes) ?

No. Authorization section is executed on access requests while accounting
section on accounting requests.

> My radius config is like this
>
> authorization is done via files module, where Tmp-String-0 is set:
> "u1"    Crypt-Password := "$1$7ZSTJ83K$IUVxdrj8TxA2nftXzx7AH.",
> Tmp-String-0 := "pppoe25", Expiration := "10 Jan 2010"
>
> accounting is done via sql.
>
>
> In sql module (used only for accounting) I need to reference
> Tmp-String-0, is this possible ?

Yes. Make an entry in acct_users file:

u1     Tmp-String-0 := "pppoe25"

Ivan Kalik
Kalik Informatika ISP




More information about the Freeradius-Users mailing list