RE: Released IP info

2012-12-12 Thread Raz Muhammad


>-Original Message-
>From: freeradius-users-
>bounces+raz.muhammad=cerberusnetworks.co...@lists.freeradius.org
>[mailto:freeradius-users-
>bounces+raz.muhammad=cerberusnetworks.co...@lists.freeradius.org] On Behalf Of
>Alan DeKok
>Sent: 11 December 2012 20:42
>To: FreeRadius users mailing list
>Subject: Re: Released IP info
>
>Raz Muhammad wrote:
>> I have a very simple query regarding following radius.log entry when a
>> PPP session is disconnected following log entry is logged:
>>
>> “Sun Dec  9 20:46:05 2012 : Info: Released IP xx.xx.xx.xx (did  cli
>> 010010010 user xxx@xxx)”
>
>  That message doesn't appear anywhere in the source code.  My guess is that
>you edited the local configuration to add it.
>
>  Alan DeKok.
>
>-
>List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Hi Alan,

Many thanks for your response. But I was sure that it must be something related 
to a setting in the default file. This is in fact related to the "sqlippool" 
setting in the default file. 

"
#This is for enabling dynamic IPPOOL feature using MySQL
sqlippool
#
#  Log traffic to an SQL database.
#
#  See "Accounting queries" in sql.conf

"

I had the "sqlippool" commented out, and that resulted in loss of "Released IP 
." log message. Now after un-commenting this "sqlippool" I have got the 
relevant information back in the radius.log file.

Thanks



smime.p7s
Description: S/MIME cryptographic signature
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Max-Daily-Session Default value when user get disconnected

2012-12-12 Thread John Doe
I need to know if you can add a default value such as 10 minutes each time a 
user logs out even though it was connected just one minute?

Thanks in advance!!



-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


share information between authorize and authenticate sections (rlm_perl & rlm_python)

2012-12-12 Thread laurent . feron
Hello,

If someone can advise me...
How to share information between the authorize() function and the 
authenticate() function within a perl or python script ?
For example, i get some information from a database in authorize() that will 
reuse it in authenticate()?
I could resubmit the sql request again, but it is clearly not efficient.

in perl, i could write some new attributes in RAD_CHECK ??, then authenticate() 
will access them.
in python, attributes are read only, so i cannot use them to pass information 
to authenticate().
A simple database, like redis, could be a solution by adding info with the id 
of the request (with Message-Authenticator as key)?

If someone has an idea, it is very welcome...

Regards,
Laurent

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


refowarding the radius request when authentication fails

2012-12-12 Thread laurent . feron
Hello,

in the authentication step, i try several authentication against otp server, 
but if all are failed if the user is not know, i would like to re forward the 
radius request to another radius server.

except the suffix mechanism in authorize section that i know a little bit, i 
don't see how to do that easily in the authentication section.
The only solution i see, but not very nice, is to build a radius client in perl 
(define in the authentication function (rlm_perl)).
If someone has an idea ???

Regards,
Laurent
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html