Re: Expiration, Counter and Reset Value
power jessie [EMAIL PROTECTED] wrote: Are there any ways I can do these in freeradius (0.4)? 1. 'Expiration' will be set based on firt login date. i.e. an account will expired 90 days after first usage. How do you know when the user is first logging in? How do you authenticate them? You can run a shell program when a request is seen. That shell program can set up any per-user configuration you desire. 2. User-defined reset value in the counter module. i.e. reset = 14 # counter will reset to zero after 14 days reset = 60 # resets after two months A *per-user* reset? That's not supported now, but it should be possible with source code patches. Also, can i have another the same counter module but with a different reset value? i.e. Yes, but they will use two different counters, and two different databases. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Expiration, Counter and Reset Value
On Wed, 19 Dec 2001, power jessie wrote: Are there any ways I can do these in freeradius (0.4)? 1. 'Expiration' will be set based on firt login date. i.e. an account will expired 90 days after first usage. Expiration = FirstLoginDate + 90 Days I don't think so. Expiration is a check item which could be stored in an ldap/mysql database. The user is responsible of changing the value. You could just run an exec-program on login that will update the expiration attribute to the correct value. 2. User-defined reset value in the counter module. i.e. reset = 14 # counter will reset to zero after 14 days reset = 60 # resets after two months Well, you can't do that. Wait a minute. I 've just commited a change to rlm_counter. You can now do the following: reset = 14 #reset after 14 days reset = 3w #reset after 3 weeks Also, can i have another the same counter module but with a different reset value? i.e. counter { ... reset = daily ... } counter2 { ... reset = monthly ... } Yes you can: counter weekly{ reset = weekly } counter monthly{ reset = monthly } authorize{ weekly monthly } -- kkalev Hope you'll be more patient to my newbie questions =) Thanks again guys for your support! yo! jessie Feliz Navidad! --- Don't Panic! This mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.309 / Virus Database: 170 - Release Date: 12/17/2001 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Expiration, Counter and Reset Value
Are there any ways I can do these in freeradius (0.4)? 1. 'Expiration' will be set based on firt login date. i.e. an account will expired 90 days after first usage. Expiration = FirstLoginDate + 90 Days 2. User-defined reset value in the counter module. i.e. reset = 14 # counter will reset to zero after 14 days reset = 60 # resets after two months Also, can i have another the same counter module but with a different reset value? i.e. counter { ... reset = daily ... } counter2 { ... reset = monthly ... } Hope you'll be more patient to my newbie questions =) Thanks again guys for your support! yo! jessie Feliz Navidad! --- Don't Panic! This mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.309 / Virus Database: 170 - Release Date: 12/17/2001 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html