1st login Script sample

Alan DeKok aland at deployingradius.com
Tue Aug 24 17:02:41 CEST 2010


Sumon Ahmed wrote:
> Hi,
> Thanks for your reply. Actually we never heard Alan's advise thats why
> we always face problem. We've to read read & read to find out the solution.

  There is no magic "do what I want" configuration in the server.  You
have to think for yourself.

  What you want to do is simple:

1) catch the user first login

2) add an Expiration configuration for that user

  In order for this to work, you need to store the user information in a
database.  FreeRADIUS is not a database.

  On login, search the database for a previous login.  If there is one,
use the Expiration stored there.  If there isn't a previous login,
create an Expiration attribute, and store it in the database.

  Alan DeKok.



More information about the Freeradius-Users mailing list