authorize {
...
if (!EAP-Message) {
reject
}
...
}
rlm_always
Synopsis
The "always" module is here for debugging purposes. Each instance always returns a preconfigured result without doing anything else.
Processing Sections
Any.
- Return Codes
-
The return code from this module is always the value of the
rcodeconfiguration directive.
Expansions
None.
Directives
- Syntax
-
mpp = boolean
- Default
-
no
- Description
-
When the
alwaysmodule is used inside of thechecksimulsection, then thealwaysmodule either permits or denies multiple logins. Themppoption controls that behavior: when set tono,mppdisallows multiple logins; when set toyes, multiple logins are allowed.
- Syntax
-
rcode =
fail | reject | noop | handled | updated | notfound | ok - Default
-
fail - Description
-
The return code of the module. The
alwaysmodule will always return the same code. Seeman unlangfor the meaning of these values.
- Syntax
-
simulcount = integer
- Default
-
0
- Description
-
The
alwaysmodule can be used inside of thechecksimulsection. When in thechecksimulsection, thealwaysmodule either permits or denies multiple logins. Thesimulcountoption controls that behavior by forcing a count of how many times the user has already logged in.
Default Instances
The server ships with a number of different instantiations of the
always module. Each instance is given the name of one of the return
codes, e.g., ok, fail, etc. These defaults should not be changed
or deleted.
The default instances allow unlang statements such as:
reject moduleThis policy will result in packets without EAP-Message being rejected.
Using reject as a module allows the unlang policy engine to be as
simple as possible. Instead of hard-coded keywords and
meanings, almost everything is a module.