Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
usage [2016-09-19 17:16] – [Auto-Topups] wikiadminusage [2016-09-19 17:22] – [Core] wikiadmin
Line 67: Line 67:
 ====== Core ====== ====== Core ======
  
-  * __SMRadius-Username-Transform__ +===== SMRadius-Evaluate ===== 
-    * Transforms a username from the supplied username to the configured username (Currently disabled) +Evaluate and set an attribute / attributes based on the results of the evaluationSyntaxTEST CASE ? TRUE_ATTRIBUTE : FALSE.
-    * <code># Transfrom user@example.net to user@this.example.net +
-SMRadius-Username-Transform  :=  example.net=this.example.net</code>+
  
-  * __SMRadius-Evaluate__ +<code> 
-    Evaluate and set an attribute attributes based on the results of the evaluation. SyntaxTEST CASE TRUE_ATTRIBUTE FALSE+SMRadius-Evaluate ||+= SMRadius_Capping_TotalDataUsage < 80000 ? [14988:Mikrotik-Rate-Limit] = 1m/4m 1m/6m 1m/5m 10/10 1 
 +SMRadius-Evaluate ||+= SMRadius_Capping_TotalDataUsage > 80000 && SMRadius_Capping_TotalDataUsage < 130000 ? [14988:Mikrotik-Rate-Limit] = 512k/1m 640k/2m 640k/2m 10/10 4 
 +SMRadius-Evaluate ||+= SMRadius_Capping_TotalDataUsage > 130000 [14988:Mikrotik-Rate-Limit] = 128k/384k 512k/1024k 256k/512k 10/10 8 
 +</code>
  
-  * __SMRadius-Peer-Address__ +===== SMRadius-Peer-Address =====
-    * Allows the admin to specify an address that the peer address must match in order to be authorized. The user / group attribute SMRadius-Peer-Address will be checked against the peer address of the client device. +
-    * <code>SMRadius-Peer-Address  ==  < peer-address ></code>+
  
-  * __SMRadius-Disable-WebUITopup__ +Allows the admin to specify an address that the peer address must match in order to be authorized. The user / group attribute SMRadius-Peer-Address will be checked against the peer address of the client device. 
-    Allows one to build web ui's that ignore topups, this attribute is not used internally at all.+ 
 +<code> 
 +SMRadius-Peer-Address  ==  <peer address> 
 +</code> 
 + 
 +===== SMRadius-Disable-WebUITopup ===== 
 + 
 +Allows one to build web ui's that ignore topups, this attribute is not used internally at all. 
 + 
 +===== SMRadius-Username-Transform ===== 
 + 
 +<btn type="warning" size="xs">Work in Progress</btn> 
 + 
 +Transforms a username from the supplied username to the configured username. 
 + 
 +<code> 
 +# Transfrom user@example.net to user@this.example.net 
 +SMRadius-Username-Transform  :=  example.net=this.example.net 
 +</code>