Table 45 Display Expressions for Data Formatting (Continued) (Continued)
Value
Nwa_NumberFormat(value[, if_undefined])
Nwa_NumberFormat(value, decimals)
Nwa_NumberFormat(value, decimals, dec_point,
thousands_sep[, if_undefined])
Nwa_TrimText(value, length)
Nwa_ValueText(value[, if_undefined])
Standard RADIUS Request Functions
These functions are available for use in condition expressions and value expressions used in the definition
of a RADIUS role. See
details about using these functions.
Variables Available in Execution Context
Several PHP variables are available for use at the time the condition expression or value expression is
evaluated.
Table 46 PHP Variables
Variable
$now
$user
$role
$role_id
$timeout
$attribute
$value
AccessReject()
AccessReject()
If invoked from a conditional expression, causes the Access-Request to be rejected.
Example usage as part of a condition expression for an attribute:
return expression && AccessReject()
Amigopod 3.7 | Deployment Guide
"Attribute Authorization Conditions"
Description
Current UNIX time, as returned by PHP function time()
User account structure
Role definition for user
Role ID of user account
Calculated session timeout for user, in seconds
Attribute name (from role definition)
Attribute value (from role definition)
Description
Converts a numerical value to a string. If the value has an
undefined type (in other words, has not been set), and the
if_undefined parameter was provided, returns if_undefined.
Otherwise, the number is converted to a string using the
number of decimal places specified in decimals (default 0),
the decimal point character in dec_point (default "."), and the
thousands separator character in thousands_sep (default ",").
Trims excessively long strings to a maximum of length
characters, appending an ellipsis ("...") if the string was
trimmed.
If the value has an undefined type (in other words, has not
been set), and the if_undefined parameter was provided,
returns if_undefined, or a HTML non-breaking space
(" ") otherwise. Otherwise, the value is converted to a
string for display.
in the RADIUS Services chapter for more
Reference |
401
Need help?
Do you have a question about the PowerConnect W Clearpass 100 Software and is the answer not in the manual?
Questions and answers