| 1 |
= The group Statement |
| 2 |
|
| 3 |
.Syntax |
| 4 |
[source,unlang] |
| 5 |
---- |
| 6 |
group { |
| 7 |
[ statements ] |
| 8 |
} |
| 9 |
---- |
| 10 |
|
| 11 |
The `group` statement collects a series of statements into a list. |
| 12 |
The default processing sections of the server (`authorize`, |
| 13 |
`accounting`, etc.) are also `group` statements. Those sections are |
| 14 |
given different name for management reasons, but they behave |
| 15 |
internally exactly like a `group`. |
| 16 |
|
| 17 |
[ statements ]:: The `unlang` commands which will be executed. |
| 18 |
|
| 19 |
All of the statements inside of the `group` are executed in sequence. |
| 20 |
The `group` statement is not normally used, as the statements within |
| 21 |
it can just be placed inside of the enclosing section. However, the |
| 22 |
`group` statement is included in the `unlang` syntax for completeness. |
| 23 |
|
| 24 |
.Examples |
| 25 |
|
| 26 |
[source,unlang] |
| 27 |
---- |
| 28 |
group { |
| 29 |
sql |
| 30 |
ldap |
| 31 |
file |
| 32 |
if (updated) { |
| 33 |
... |
| 34 |
} |
| 35 |
} |
| 36 |
---- |
| 37 |
|
| 38 |
// Copyright (C) 2020 Network RADIUS SAS. Licenced under CC-by-NC 4.0. |
| 39 |
// Development of this documentation was sponsored by Network RADIUS SAS. |