Radiator Server Documentation — v10.34.2
Table of Contents

aaa

AAA processing state and identity information.

Fields

FieldTypeAccessDescription
protocolstring?readProtocol name (radius, eap_ttls, etc.)
tracebooleanreadIs request tracing enabled?
accountingboolean?readIs this an accounting request?
policystring?readName of AAA policy handling request
handlerstring?readName of AAA handler handling request
identitystring?read/writeCurrent username/identity
methodstring?readAuthentication method (pap, chap, mschap, etc.)
messagestring?read/writeReply message
resultstring?readAAA result (accept, reject, challenge, etc.)
reasonstring?readError or rejection reason

Lua context.aaa.protocol returns a lowercase protocol name, such as radius, eap_ttls, tacacs_plus, or management, or nil when unset. RadConf policy conditions compare the enum with named constants, such as aaa.protocol == protocol.RADIUS. See AAA protocol.

context.aaa.result returns a lowercase result name, or nil when unset. Compare it directly, for example context.aaa.result == "accept". Post pipelines expose the corresponding main pipeline result; final pipelines expose the final AAA result. Unlike Lua, direct RadConf access is numeric; use "%{aaa.result}" for the lowercase name in RadConf.

Example

local context, previous = ...

local aaa = context.aaa

-- Check protocol
if aaa.protocol == "radius" then
    -- Modify identity
    aaa.identity = "modified@realm.com"

    -- Set reply message
    aaa.message = "Welcome!"
end

return previous