Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
mod_feature_validity.pm [2013-05-14 23:21]
wikiadmin
mod_feature_validity.pm [2013-12-06 15:56] (current)
rspencer Fix heading levels
Line 1: Line 1:
-=====mod_feature_validity.pm=====+====== 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. 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====+===== Attributes ​===== 
 + 
 +==== SMRadius-Validity-ValidFrom ​====
  
-===SMRadius-Validity-ValidFrom=== 
 Indicates the start date of the valid period of account use. Indicates the start date of the valid period of account use.
-<​code>#​ Allow this account to connect from 1 April 2012 
-SMRadius-Validity-ValidFrom ​ :=  2012-04-01</​code>​ 
  
-===SMRadius-Validity-ValidTo===+<​code>​ 
 +# Allow this account to connect from 1 April 2012 
 +SMRadius-Validity-ValidFrom ​ :=  2012-04-01 
 +</​code>​ 
 + 
 +==== SMRadius-Validity-ValidTo ===
 The date indicating the end date of the valid period of account use. The date indicating the end date of the valid period of account use.
-<​code>#​ Allow this account to connect until 1 May 2012 
-SMRadius-Validity-ValidTo ​ :=  2012-05-01</​code>​ 
  
-===SMRadius-Validity-ValidWindow===+<​code>​ 
 +# Allow this account to connect until 1 May 2012 
 +SMRadius-Validity-ValidTo ​ :=  2012-05-01 
 +</​code>​ 
 + 
 +==== SMRadius-Validity-ValidWindow ===
 The period in seconds since first login that the user is allowed to stay connected. The period in seconds since first login that the user is allowed to stay connected.
-<​code>#​ Allow the account to be connected for 24 hours 
-SMRadius-Validity-ValidWindow ​ :=  86400</​code>​ 
  
-====Hooks====+<​code>​ 
 +# Allow the account to be connected for 24 hours 
 +SMRadius-Validity-ValidWindow ​ :=  86400 
 +</​code>​ 
 + 
 +===== Hooks ===== 
 + 
 +==== post_auth_hook ​====
  
-===post_auth_hook=== 
 Runs at the post authentication stage and checks the date / time against the configured validity periods. Runs at the post authentication stage and checks the date / time against the configured validity periods.
  
-===post_acct_hook===+==== post_acct_hook ===
 Runs at the post accounting stage and checks the date / time against the configured validity periods. ​ Runs at the post accounting stage and checks the date / time against the configured validity periods. ​