Freeradius module
The rlm_always 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.
The main configuration item to be aware of is:
This module will always return with the rcode specified. The default, if none specified is: fail (RLM_MODULE_FAIL).
The valid options are:
RLM_MODULE_REJECT
RLM_MODULE_FAIL
RLM_MODULE_OK
RLM_MODULE_HANDLED
RLM_MODULE_INVALID
RLM_MODULE_USERLOCK
RLM_MODULE_NOTFOUND
RLM_MODULE_NOOP
RLM_MODULE_UPDATED
modules {
...
always ok {
rcode = ok
}
...
}
...
authorize {
...
redundant {
sql1 # try to find the user in sql1
sql2 # try to find the user in sql2
ok # if still not found, it's OK.
}
...
}
authorization, authentication, postauthentication, preaccounting, accounting, preproxy, postproxy
/etc/raddb/radiusd.conf
Chris Parker, [email protected]