rlm_always(5)
π NAME π
okay so bestie, welcome to rlm_always(5) β the manual page for rlm_always, a FreeRADIUS Module that is literally built to βalwaysβ return a value during the processing of a configuration section. No cap, itβs giving tiny-but-powerful. π
β¨ DESCRIPTION β¨
The rlm_always module provides a simple way to "always" return a value during the processing of a configuration section. slay.
The main configuration item is rcode, which sets the return code that this instantiation of the module will return. The default, if none specified, is fail. Periodt.
The valid options for rcode are, like, exactly these:
rejectβ reject the user;failβ a failure has occurred;okβ success;handledβ the request has been handled: processing should be stopped and the response sent;invalidβ request is invalid;userlockβ the user account has been locked out;notfoundβ the user account cannot be found;noopβ no-op: nothing has happened;updatedβ the request has been updated.
π οΈ CONFIGURATION π οΈ
rcode = <code>β this module will always return with the code specified, as listed in thercodelineup above. If unspecified, the default isfail.simulcount = <n>β if this module is used in thesession{}section, thesimulcountoption simulates the user havingncurrent sessions. The default is to not override the number of sessions.mpp = <yes|no>β if set toyes, and this module is used in thesession{}section, this simulates the user having multilink sessions. The default isno.
π EXAMPLE π
okay, code time β and yes, it is exactly this:
modules {
...
# instantiate the "always" module with the name "ok"
always ok {
# return code for this instantiation is "ok":
rcode = ok
}
...
}
authorize {
...
redundant {
sql1 # try to find the user in sql1
sql2 # try to find the user in sql2
# the default here would be to fail, but...
ok # if still not found, it's OK.
}
...
}
the comments in the example are doing the explaining β bestie behavior, honestly. π«Ά
π SECTIONS π
This module can appear in these sections:
authorization, authentication, postauthentication, preaccounting, accounting, preproxy, postproxy
π¦ FILES π¦
/etc/raddb/mods-available/always
π SEE ALSO π
Further details of how module return codes operate can be found at <http://wiki.freeradius.org/config/Fail-over>.
π AUTHOR π
Chris Parker <cparker@segv.org>, Matthew Newton <matthew@newtoncomputing.co.uk>.
byeee π β rlm_always(5) Β· FreeRADIUS Module Β· 10 January 2015.
π¦ where this page comes from
- alpine 3.22: freeradius-doc 3.0.27-r1 Β· GPL-2.0-or-later
- alpine 3.23: freeradius-doc 3.0.27-r2 Β· GPL-2.0-or-later
- alpine 3.24: freeradius-doc 3.0.27-r3 Β· GPL-2.0-or-later
- arch rolling: freeradius 3.2.10-4 Β· GPL-2.0-or-later
- centos-stream 10: freeradius 3.2.8-2.el10 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- centos-stream 9: freeradius 3.0.27-4.el9 Β· GPLv2+ and LGPLv2+
- fedora 43: freeradius 3.2.7-6.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 43: freeradius 3.2.7-6.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 43: freeradius 3.2.8-2.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 43: freeradius 3.2.8-2.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: freeradius 3.2.8-3.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: freeradius 3.2.8-3.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- opensuse-leap 16.0: freeradius-server 3.2.5-160000.2.2 Β· GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: freeradius-server 3.2.5-160000.2.2 Β· GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: freeradius-server 3.2.5-160000.2.2 Β· GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: freeradius-server 3.2.5-160000.2.2 Β· GPL-2.0-only AND LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms