Selector
Selector reference and configuration for Radius.
The selector configuration allows for multiple authenticators to use the same listener (host and port). Requests are routed to authenticators based on the rules defined in the selector.
If a request matches multiple selectors; first match wins. If no selector is specified; first authenticator wins.
Matching can be done on sender host (name or ip) and on one or more attributes. For a selector to match, all specified expressions must match.
Expressions must conform with Java regular expression (regex) syntax.
| Name | Description |
|---|---|
host | Source host (sender) expression (regex). |
attrs | List of attribute expression objects |
attrs[*].name | Attribute name (Mandatory unless type is specified) |
attrs[*].type | Attribute type (Mandatory unless name is specified) |
attrs[*].value | Attribute value expression (regex) |
Selector matching requests from host with address starting with "127." or matching "localhost".
{ "host" : "127\\..*|localhost"}Selector matching requests from localhost containing two attributes. Attribute 44 containing the value "sms" and 4 (NAS-IP-Address) starting with "192.".
{ "host" : "localhost", "attrs" : [ { "type" : 44, "value" : "sms" }, { "name" : "NAS-IP-Address", "value" : "192\\..*" } ]}