Hi, Just a quick question. Is expiration := Never valid in radcheck? At the moment I set dates a few years into the future for accounts that I don't want to expire, but I'm sure that they'll come back to haunt me later. Regards, Sean Bracken
-----Message d'origine----- De : freeradius-users-bounces+thibault.lemeur=supelec.fr@lists.free radius.org [mailto:freeradius-users-bounces+thibault.lemeur=supelec.fr@li sts.freeradius.org] De la part de Sean Envoyé : mardi 28 novembre 2006 13:22 À : freeradius-users@lists.freeradius.org Objet : Expiration
Hi,
Just a quick question. Is expiration := Never valid in radcheck? At the moment I set dates a few years into the future for accounts that I don't want to expire, but I'm sure that they'll come back to haunt me later.
Wouldn't it me easier just to not add an Expiration attribute to your radcheck list ? Indeed, AFAIK when no Expiration attribute is found in the list, there is no check on the user account expiration. Thibault
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. Is there something in the source code that grabs specific queries at certain times? Thanks... Thibault Le Meur wrote:
-----Message d'origine----- De : freeradius-users-bounces+thibault.lemeur=supelec.fr@lists.free radius.org [mailto:freeradius-users-bounces+thibault.lemeur=supelec.fr@li sts.freeradius.org] De la part de Sean Envoyé : mardi 28 novembre 2006 13:22 À : freeradius-users@lists.freeradius.org Objet : Expiration
Hi,
Just a quick question. Is expiration := Never valid in radcheck? At the moment I set dates a few years into the future for accounts that I don't want to expire, but I'm sure that they'll come back to haunt me later.
Wouldn't it me easier just to not add an Expiration attribute to your radcheck list ? Indeed, AFAIK when no Expiration attribute is found in the list, there is no check on the user account expiration.
Thibault
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
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
participants (3)
-
Michelle Manning -
Sean -
Thibault Le Meur