update rlm_always
authorMatthew Newton <mcn4@leicester.ac.uk>
Sun, 11 Jan 2015 01:07:55 +0000 (01:07 +0000)
committerMatthew Newton <mcn4@leicester.ac.uk>
Tue, 20 Jan 2015 00:08:07 +0000 (00:08 +0000)
man/man5/rlm_always.5

index 3e420bd..383b271 100644 (file)
 .RE
 .sp
 ..
-.TH rlm_always 5 "3 February 2004" "" "FreeRADIUS Module"
+.TH rlm_always 5 "10 January 2015" "" "FreeRADIUS Module"
 .SH NAME
 rlm_always \- FreeRADIUS Module
 .SH DESCRIPTION
 The \fIrlm_always\fP module provides a simple way to "always" return a
-value during the processing of a configuration section.  The module
-does nothing other than return a configured value.
+value during the processing of a configuration section.
 .PP
+The main configuration item is \fIrcode\fP, which sets the return code that
+this instantiation of the module will return. The default, if none
+specified, is 'fail'.
 .PP
-The main configuration item to be aware of is:
-.IP rcode
-This module will always return with the rcode specified.  The
-default, if none specified is: fail (RLM_MODULE_FAIL).
-.PP
-The valid options are:
-.IP reject
-RLM_MODULE_REJECT
+The valid options for rcode are as follows:
+.RS
+.TP
+reject
+reject the user;
 .IP fail
-RLM_MODULE_FAIL
+a failure has occurred;
 .IP ok
-RLM_MODULE_OK
+success;
 .IP handled
-RLM_MODULE_HANDLED
+the request has been handled: processing should be stopped and the response
+sent;
 .IP invalid
-RLM_MODULE_INVALID
+request is invalid;
 .IP userlock
-RLM_MODULE_USERLOCK
+the user account has been locked out;
 .IP notfound
-RLM_MODULE_NOTFOUND
+the user account cannot be found;
 .IP noop
-RLM_MODULE_NOOP
+no-op: nothing has happened;
 .IP updated
-RLM_MODULE_UPDATED
+the request has been updated.
+.RE
 .SH CONFIGURATION
+.PP
+.IP "rcode = <code>"
+This module will always return with the code specified, as listed in the
+table above.  If unspecified, the default is 'fail'.
+.IP "simulcount = <n>"
+If this module is used in the session{} section, the simulcount option
+simulates the user having 'n' current sessions. The default is to not
+override the number of sessions.
+.IP "mpp = <yes|no>"
+If set to yes, and this module is used in the session{} section, this
+simulates the user having multilink sessions.  The default is 'no'.
+.PP
+.SH EXAMPLE
+.PP
 .DS
 modules {
   ...
 .br
+  # instantiate the "always" module with the name "ok"
+.br
   always ok {
 .br
+       # return code for this instantiation is "ok":
+.br
        rcode = ok
 .br
   }
@@ -58,7 +77,7 @@ modules {
 .br
 }
 .br
- ...
+
 .br
 authorize {
   ...
@@ -68,6 +87,8 @@ authorize {
 .br
      sql2          # try to find the user in sql2
 .br
+     # the default here would be to fail, but...
+.br
      ok            # if still not found, it's OK.
 .br
   }
@@ -75,7 +96,6 @@ authorize {
 .br
 }
 .DE
-.PP
 .SH SECTIONS
 .BR authorization,
 .BR authentication,
@@ -86,10 +106,14 @@ authorize {
 .BR postproxy
 .PP
 .SH FILES
-.I /etc/raddb/radiusd.conf
+.I /etc/raddb/mods-available/always
 .PP
 .SH "SEE ALSO"
 .BR radiusd (8),
-.BR radiusd.conf (5)
+.BR radiusd.conf (5),
+.BR unlang (5)
+.PP
+Further details of how module return codes operate can be found at <http://wiki.freeradius.org/config/Fail-over>.
 .SH AUTHOR
-Chris Parker, cparker@segv.org
+Chris Parker <cparker@segv.org>, Matthew Newton
+<matthew@newtoncomputing.co.uk>.