mod_feature_validity.pm
Implements the checking of the connection date against configured valid dates. It is possible to only have a start date or an end date set, in this case the account is valid until the end date or after the start date. If the current date is not within the specified dates, the connection is terminated. If NO dates have been specified, the account is allowed to connect.
Attributes
SMRadius-Validity-ValidFrom
Indicates the start date of the valid period of account use.
# Allow this account to connect from 1 April 2012 SMRadius-Validity-ValidFrom := 2012-04-01
SMRadius-Validity-ValidTo
The date indicating the end date of the valid period of account use.
# Allow this account to connect until 1 May 2012 SMRadius-Validity-ValidTo := 2012-05-01
SMRadius-Validity-ValidWindow
The period in seconds since first login that the user is allowed to stay connected.
# Allow the account to be connected for 24 hours SMRadius-Validity-ValidWindow := 86400
Hooks
post_auth_hook
Runs at the post authentication stage and checks the date / time against the configured validity periods.
post_acct_hook
Runs at the post accounting stage and checks the date / time against the configured validity periods.