Lua script context API - TACACS+ sub-context
tacacsplus
TACACS+ protocol data.
Fields
| Field | Type | Access | Description |
|---|---|---|---|
type | string? | read | Packet type name |
authentication | boolean? | read | Is authentication request? |
authorization | boolean? | read | Is authorization request? |
accounting | boolean? | read | Is accounting request? |
unencrypted | boolean? | read | Was packet unencrypted? |
session | number? | read | Session ID |
request | packet | read | Request packet |
reply | packet | read | Reply packet |
client | client? | read | TACACS+ client info |
server | server? | read | TACACS+ server info |
Packet Fields
| Field | Type | Access | Description |
|---|---|---|---|
action | string? | read | Request action name (request only) |
privilege | number? | read | Privilege level |
status | string? | read/write | Response status (reply only) |
noecho | boolean? | read/write | No-echo flag (reply only) |
user | string? | read | Username (request only) |
port | string? | read | Port (request only) |
address | string? | read | Remote address (request only) |
message | string? | read/write | Message (reply write-only) |
data | bytes? | read/write | Data field (reply write-only) |
args | string[]? | read | Arguments |
authentication | auth? | read | Authentication-specific data |
Authentication Object
| Field | Type | Description |
|---|---|---|
method | string? | Authentication method name |
type | string? | Authentication type name |
service | string? | Authentication service name |
Client Object
| Field | Type | Description |
|---|---|---|
name | string | Client name |
ip | string? | Client IP address |
Server Object
| Field | Type | Description |
|---|---|---|
name | string | Server name |
ip | string | Server IP address |
port | number | Server port |
tls | boolean | Is TLS enabled? |
Packet Methods
| Method | Parameters | Returns | Description |
|---|---|---|---|
append_arg(argument) | argument string | - | Append argument to reply |