Hi All, I am new to developing for Freeradius and i was hoping one of you can direct me into the right direction. I would like to have a program update the Session-Timeout on authentication request or on disconnect so that when the user receives the access accept it receives the updated Session-TImeout. What is the correct way of doing this and is there some sort of example that i can read. I have been searching in the mailing list and in google but so far no luck. Regards, Ivo
On 7 Sep 2011, at 21:28, Ivaylo Petkov wrote:
Hi All,
I am new to developing for Freeradius and i was hoping one of you can direct me into the right direction. I would like to have a program update the Session-Timeout on authentication request or on disconnect so that when the user receives the access accept it receives the updated Session-TImeout. What is the correct way of doing this and is there some sort of example that i can read. I have been searching in the mailing list and in google but so far no luck.
Put this in the post-auth section of raddb/sites-available/default update reply { Session-Timeout := `/path/to/my/super/awesome/sessiontimeout/script -myarguments` } -Arran Arran Cudbard-Bell a.cudbardb@freeradius.org RADIUS - Half the complexity of Diameter
Hi, I am new in this mailing list. I have similar situation too, I need counting "something" before decide to send session-timeout to NAS in accounting section. The purpose is disconnect online-user by updating his current Session-Timeout with lower value. Unfortunately, its still not working. My question is, is it possible to send reply Session-Timeout in "accounting section"? I put same in accounting section: update reply { Session-Timeout := `/path/to/my/super/awesome/sessiontimeout/script -myarguments` } -- View this message in context: http://freeradius.1045715.n5.nabble.com/Custom-function-to-update-Session-Ti... Sent from the FreeRadius - User mailing list archive at Nabble.com.
Have you tried setting the proper timeout from the auth section? Session-Timeout := `/script/that/returns/minimum/of/1-hour/or/remaining-time` ? On 9/12/2011 20:52, denzx wrote:
Hi, I am new in this mailing list.
I have similar situation too, I need counting "something" before decide to send session-timeout to NAS in accounting section. The purpose is disconnect online-user by updating his current Session-Timeout with lower value. Unfortunately, its still not working.
My question is, is it possible to send reply Session-Timeout in "accounting section"?
I put same in accounting section: update reply { Session-Timeout := `/path/to/my/super/awesome/sessiontimeout/script -myarguments` }
-- View this message in context: http://freeradius.1045715.n5.nabble.com/Custom-function-to-update-Session-Ti... Sent from the FreeRadius - User mailing list archive at Nabble.com. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Tue, Sep 13, 2011 at 10:52 AM, denzx <dennyzulfikar@gmail.com> wrote:
My question is, is it possible to send reply Session-Timeout in "accounting section"?
" 5.27. Session-Timeout Description This Attribute sets the maximum number of seconds of service to be provided to the user before termination of the session or prompt. This Attribute is available to be sent by the server to the client in an Access-Accept or Access-Challenge. " So no, you shouldn't be able to "send reply Session-Timeout in accounting section" -- Fajar
Hi All again, thanks a lot for your answers. it's now clear to me that I must try other ways to perform disconnection of users. BR//Denny -- View this message in context: http://freeradius.1045715.n5.nabble.com/Custom-function-to-update-Session-Ti... Sent from the FreeRadius - User mailing list archive at Nabble.com.
if you use mpd5 you can check 'drop-user', it is vendor specific for mpd5, but works fine! check last documentation for mpd5 13.09.2011, 12:40, "denzx" <dennyzulfikar@gmail.com>:
Hi All again,
thanks a lot for your answers. it's now clear to me that I must try other ways to perform disconnection of users.
BR//Denny
-- View this message in context: http://freeradius.1045715.n5.nabble.com/Custom-function-to-update-Session-Ti... Sent from the FreeRadius - User mailing list archive at Nabble.com. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (6)
-
Arran Cudbard-Bell -
Christ Schlacta -
denzx -
Fajar A. Nugraha -
Ivaylo Petkov -
KES