Policy
This is the start of a policy clause. The clause has a name which is defined as a string. A single policy can contain multiple handlers from which a first handler to match will be selected to handle the received request.
Example configuration of a policy clause:
policy "Local network access" {
handler "WLAN Controllers" {
# (Optional) Only requests matching the conditions will be handled by this handler
conditions all {
radius.client == "WLAN Controllers";
}
# Handler configuration
# ...
}
handler "Network switches" {
# (Optional) Only requests matching the conditions will be handled by this handler
conditions all {
radius.client == "Network switches";
}
# Handler configuration
# ...
}
# A handler without conditions will handle any request
handler "Default handler" {
# Handler configuration
# ...
}
}
Policies are configured within an aaa clause which can include multiple policies:
aaa {
policy "example1" {
}
policy "example2" {
}
}