rlm_perl & %RAD_REPLY issue

Max Lock max at natcom.co.nz
Thu Oct 13 10:35:57 CEST 2005


On Thu, 2005-10-13 at 20:31 +1300, Max Lock wrote:
> On Thu, 2005-10-13 at 09:35 +0300, Boyan Jordanov wrote:
> > On Thursday 13 October 2005 05:08, Max Lock wrote:
> > > rlm_perl: ERROR: Failed to create pair Max-Total-Octets = 600000
> > 
> > Do you have such attribute in your dictionary ?  
> > 
>  You beauty!
> 
>  I do now :)
> 
>  works a treat! thankyou, I've been trying to get this working all
> day! :)

 Just one more question! for some reason, simply setting the hash and
returning RLM_MODULE_OK works fine. but I'm returning the contents of a
variable..

$RAD_REPLY{'ChilliSpot-Max-Total-Octets'} = $unused_user_octets;

 however the module then returns a reject? when it shouldn't?

perl_pool: item 0x814b2b0 asigned new request. Handled so far: 1
found interpetator at address 0x814b2b0
rlm_perl: Voucher:QEMRS3LFLC01 Used:1003947 Total:6000000 Left:4996053
rlm_perl: RAD_REPLY: Acct-Interim-Interval = 120
rlm_perl: RAD_REPLY: Idle-Timeout = 300
rlm_perl: RAD_REPLY: Session-Timeout = 208
rlm_perl: RAD_REPLY: WISPr-Bandwidth-Max-Up = 128000
rlm_perl: RAD_REPLY: ChilliSpot-Max-Total-Octets = 4996053
rlm_perl: RAD_REPLY: WISPr-Bandwidth-Max-Down = 256000
rlm_perl: Added pair Acct-Interim-Interval = 120
rlm_perl: Added pair Idle-Timeout = 300
rlm_perl: Added pair Session-Timeout = 208
rlm_perl: Added pair WISPr-Bandwidth-Max-Up = 128000
rlm_perl: Added pair ChilliSpot-Max-Total-Octets = 4996053
rlm_perl: Added pair WISPr-Bandwidth-Max-Down = 256000
rlm_perl: Added pair Max-Daily-Session-Data = 6000000
rlm_perl: Added pair Password = QEMRS3LFLC01
rlm_perl: Added pair Simultaneous-Use = 1
rlm_perl: Added pair Max-Daily-Session-Time = 7200
rlm_perl: Added pair Auth-Type = Local
perl_pool total/active/spare [5/0/5]
Unreserve perl at address 0x814b2b0
modcall[authorize]: module "perl" returns reject for request 0
modcall: group authorize returns reject for request 0

 What's happening? 

 -Thanks Max.




More information about the Freeradius-Users mailing list