Automatically Generating "Expiration" - Freeradius 2.1.9 / mysql 5.1 / dialup admin

YvesDM ydmlog at
Thu Nov 25 12:16:02 CET 2010

On Wed, Nov 24, 2010 at 7:50 AM, mikal <mpm at> wrote:
> What I'm trying to do is enable a non-technical person to create temporary,
> "guest like" accounts using the dialup admin interface.  The accounts will
> be created as needed, they need to expire within a predetermined time
> frame(s) and I'm trying to avoid asking the person creating the accounts to
> be entering "Expiration".
> So how would I approach having the "Expiration" field auto populated based
> on the account creation date/time and a predetermined account lifetime?  For
> instance, creation date/time + 12-hours, or date + 1-day.
> Thanks in advance for any guidance.

Why don't you simply write some kind of small webif in php to do this?
It's easy to predefine values and just add them to the database when a
non-technical person presses a button or something like it. (you could
even add multiple timeframes in a dropdownbox or so)
With a little coding you could even integrate such a page in the
existing dialup admin if this is desired.

I would not use expiration also, but some no-resetting sql counter.
You will also need to find a way to auto-delete expired accounts.

Just my 2cents.

More information about the Freeradius-Users mailing list