Re: rlm_perl & %RAD_REPLY issue

2005-10-14 Thread Max Lock
On Fri, 2005-10-14 at 09:48 +0300, Boyan Jordanov wrote: > On Thursday 13 October 2005 21:55, Max Lock wrote: > > that's what I'm trying to do. > > > > sub authorize { > > Maybe you need authenticate instead of authorize ? > Read docs/aaa.txt > thanks Boyan, I realised that I'd accidently rem

Re: rlm_perl & %RAD_REPLY issue

2005-10-13 Thread Boyan Jordanov
On Thursday 13 October 2005 21:55, Max Lock wrote: > that's what I'm trying to do. > > sub authorize { Maybe you need authenticate instead of authorize ? Read docs/aaa.txt -- Best Regards, Boian Jordanov SNE Orbitel - Next Generation Telecom tel. +359 2 4004 723 tel. +359 2 4004 002 - List inf

Re: rlm_perl & %RAD_REPLY issue

2005-10-13 Thread Max Lock
On Thu, 2005-10-13 at 15:14 +0300, Boyan Jordanov wrote: > You don't need to return a variable just fill the hash and then return > RLM_MODULE_OK, and then rlm_perl will take the values from hash and put them > in radreply. that's what I'm trying to do. sub authorize { my $used_user_octets

Re: rlm_perl & %RAD_REPLY issue

2005-10-13 Thread Boyan Jordanov
On Thursday 13 October 2005 11:35, Max Lock wrote: >  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 mod

Re: rlm_perl & %RAD_REPLY issue

2005-10-13 Thread Max Lock
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 = 60 > > > > Do you have such attribute in your dictionary ? > >

Re: rlm_perl & %RAD_REPLY issue

2005-10-13 Thread Max Lock
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 = 60 > > Do you have such attribute in your dictionary ? > You beauty! I do now :) works a treat! thankyou, I've bee

Re: rlm_perl & %RAD_REPLY issue

2005-10-12 Thread Boyan Jordanov
On Thursday 13 October 2005 05:08, Max Lock wrote: > rlm_perl: ERROR: Failed to create pair Max-Total-Octets = 60 Do you have such attribute in your dictionary ? -- Best Regards, Boian Jordanov SNE Orbitel - Next Generation Telecom tel. +359 2 4004 723 tel. +359 2 4004 002 - List info/su

Re: rlm_perl & %RAD_REPLY issue

2005-10-12 Thread Max Lock
On Thu, 2005-10-13 at 15:08 +1300, Max Lock wrote: > Hi Folks, > > trying to run version 1.0.4 on Debian sarge.. Nope, fails on 1.0.5 too :( also disregard the 3 x's in the attribute I was trying to pass, was just testing to see if it was an integer vs string type issue... -Cheers Max. - Lis

rlm_perl & %RAD_REPLY issue

2005-10-12 Thread Max Lock
Hi Folks, trying to run version 1.0.4 on Debian sarge.. export LD_PRELOAD=/usr/lib/libperl.so.5.8; freeradius -X (to account for known debian weirdness) using rlm_perl like so... sub authorize { $RAD_REPLY{'Max-Total-Octets'} = "xxx600"; &log_request_attributes; &lo