This parameter allows you to control the behaviour of multiple
AuthBy clauses inside this <AuthBy GROUP>. This
parameter is always available in <Handler ...>
and <Realm ...> clauses. In particular, it
allows you to specify under what conditions Radiator tries the next AuthBy
clause. If you only have one AuthBy clause,
AuthByPolicy is not relevant and is
ignored.
You can specify more than one AuthBy clause for a single
Realm, Handler, or <AuthBy GROUP>. The normal
behaviour of Radiator is to try to authenticate with the first one. If
that authentication method either Accepts or Rejects the request, then
Radiator immediately sends a reply to the NAS. If the AuthBy ignores the
request, then the next one is tried. That is the default behaviour, you
can change it using AuthByPolicy. The permissible values
of AuthByPolicy are:
ContinueWhileIgnoreThis is the default.
Continue trying to authenticate until either Accept, Challenge, or
Reject.
ContinueUntilIgnoreContinue trying to
authenticate until Ignore.
ContinueWhileAcceptContinue trying to
authenticate as long as it is Accepted.
ContinueUntilAcceptContinue trying to
authenticate until it is Accepted.
ContinueWhileChallengeContinue trying to
authenticate as long as it is Challenged.
ContinueUntilChallengeContinue trying to
authenticate until it is Challenged.
ContinueWhileRejectContinue trying to
authenticate as long as it is Rejected.
ContinueUntilRejectContinue trying to
authenticate until it is Rejected.
ContinueWhileAcceptOrChallengeContinue trying
to authenticate as long as it is either Accepted or
Challenged.
ContinueUntilAcceptOrChallengeContinue trying
to authenticate until it is either Accepted or Challenged.
ContinueUntilRejectOrChallengeContinue trying
to authenticate until it is either Reject or Challenged.
ContinueAlways Note: this is the same as any
other value
Always do every authentication method. Returns the
result of the last one.
Here is an example of using
AuthByPolicy:
# Authenticate with SQL, but if they are rejected
# fall back to a flat file
AuthByPolicy ContinueWhileReject
<AuthBy SQL>
....
</AuthBy>
<AuthBy FILE>
....
</AuthBy>
You can only have one
AuthByPolicy parameter and it applies to all the
AuthBy clauses. You cannot change it between AuthBy clauses.
Tip
ContinueUntilAcceptOrChallenge is the most
useful one when using EAP requests in an <AuthBy
GROUP> with multiple internal AuthBys.