Keywords
The following tables list the keywords used in Unlang
. These keywords
implement the "flow control" of the policies.
Flow Control Keywords
The flow control keywords allow if / then / else checks, simple looping, etc.
Keyword | Description |
---|---|
Exit early from a |
|
Match inside of a |
|
Do something when an |
|
Check for condition when a previous |
|
Loop over a list of attributes. |
|
Check for a condition, and execute a sub-policy if it matches. |
|
Immediately stop processing a section. |
|
Check for multiple values. |
Attribute Editing Keywords
The attribute editing keywords allow policies to add, delete, and modify attributes in any list or packet.
Keyword | Description |
---|---|
Add or filter attributes to a list |
Grouping Keywords
The grouping keywords allow policies to be organized into groups, including load-balancing.
Keyword | Description |
---|---|
Group a series of statements. |
|
Define a load balancing group without fail-over. |
|
Define a redundant group with fail-over. |
|
Define a redundant group with fail-over and load balancing. |
Module Keywords
The module keywords refer pre-packaged libraries that implement
specific functionality, such as connecting to SQL, LDAP, etc. The
name used here is not the literal string module
. Instead, it is the
name of an instance of a pre-packaged module such as sql
, or ldap
, or
eap
.
The documentation below describes how to reference modules. That is,
how to use sql
, etc. in the policies. Please see
raddb/mods-available/
for configuration examples for each module.
Keyword | Description |
---|---|
Execute a named module, e.g., |
|
Execute a particular method of a named module, e.g., |
|
Built-in modules, e.g., |