Radiator Server Documentation — v10.33.2

Lua script context API - AAA sub-context

Table of Contents
  • aaa
  • Fields
  • Example

aaa

AAA processing state and identity information.

Fields

FieldTypeAccessDescription
protocolstring?readProtocol name (radius, tacacs+, http, 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

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
Table of Contents
Navigation
  • @verification

  • aaa

  • backends

  • caches

  • captures

  • certificates

  • clients

  • conditions

  • dictionary

  • hmac-otp

  • include

  • init

  • ip-accept

  • license

  • logging

  • management

  • proxy-protocol

  • scripts

    • context

      • aaa

      • acct

      • auth

      • cache

      • cert

      • eap

      • eap_teap

      • eap_ttls

      • http

      • radius

      • radiusproxy

      • stats

      • tls

      • user

      • vars

  • servers

  • statistics

  • stats

  • template

  • ui