RE : RE : Expiration

This is a discussion on RE : RE : Expiration within the FreeRADIUS Users forums, part of the Networking and Network Related category; > I have a question with regard to expiration. I'd like to update the > expiration to a new ...


Go Back   Usenet Forums > Networking and Network Related > FreeRADIUS Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-28-2006
Thibault Le Meur
 
Posts: n/a
Default RE : RE : Expiration

> I have a question with regard to expiration. I'd like to update the
> expiration to a new date once a user logs in for the first
> time. I've tried to add a query to the sql conf file where
> the radacct table
> gets updated when a user logs in, but I can't seem to add a
> new query that is recognized, or append a query to one that
> is there.


Here is how I would do this:

Define a new sql module in your sql.conf file:

sql sql-update-expiration {
XXX
}

Replace XXX with the SQL query you want.


Then in your post-auth section add something like:
Post-Auth-Type postauth.updateExpiration {
sql-update-expiration
}


Then in your "users" file (or sql DB if your rules are handled by mysql):

DEFAULT Huntgroup == MyNASWithExpirationUpdate, Post-Auth-Type :=
postauth.updateExpiration
+List of reply attrs

Replace the condition "Huntgroup == MyNASWithExpirationUpdate" with anything
that could match the Accesses for which you want to update the Expiration
attribute.

HTH,
Thibault




-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:45 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0