User-name hints are special rules that modify the incoming request
depending on user name and his credentials. Hints are stored as a list
of Matching Rules (see section Matching Rule). Upon receiving a request,
radiusd
scans the hints entries sequentially, comparing each
rule's Label with the value of User-Name
attribute from
the request. If they coincide, then radiusd
appends the contents
of the rule's RHS to the request pair-list.
Both user names must match exactly in order for a hint to
take effect, unless the hint's checklist contains either Prefix
or
Suffix
attribute. The special name `DEFAULT' or
`DEFAULT%d' (where %d denotes any decimal number), used as hint's
Label match any username.
The two special attributes, Prefix
and Suffix
, may be used
in LHS to restrict the match to a specified part of a user-name. Both
are string attributes. The Prefix
instructs radius to accept the
hint only if the username begins with the given prefix. Similarly,
Suffix
instructs radius to accept the hint only if the username
ends with the given suffix. A hint may contain both Prefix
and
Suffix
attributes.
In addition to these two attributes, a hint's LHS may
contain User-ID
and Group
attributes.
The following attributes, when used in a hint's RHS have special meaning. They are not appended to the request pair-list. Instead, they are removed after completing their function:
Fall-Through
Yes
, radiusd
continues scanning the hints, after processing current entry. This
allows for applying several hints to a single packet.
Rewrite-Function
Replace-User-Name
User-Name
attribute from the request.
The hints rules are defined in `raddb/hints' file (see section Request Processing Hints -- `raddb/hints').
Go to the first, previous, next, last section, table of contents.