HWTACACS uses different attributes to define authorization and accounting to be performed. The attributes are carried by the argN field. This section describes HWTACACS attributes in detail.
Table 1 describes the HWTACACS attributes supported by the device. The device can only parse the attributes included in the table.
Attribute Name |
Description |
---|---|
acl |
Authorization ACL ID. |
addr |
A network address. |
autocmd |
An auto-command to run after a user logs in to the device. |
bytes_in |
Number of input bytes transmitted during this connection. K, M, and G represent KByte, MByte, and GByte. No unit is displayed if byte is used. |
bytes_out |
Number of output bytes transmitted during this connection. K, M, and G represent KByte, MByte, and GByte. No unit is displayed if byte is used. |
callback-line |
The line number to use for a callback, such as a mobile number. |
cmd |
Command name for a shell command that is to be run. The maximum length is 251 characters. The complete command is encapsulated when the command is recorded and the first keyword is encapsulated when the command is authorized. |
cmd-arg |
Parameter in the command line to be authorized. The cmd-arg=<cr> is added at the end of the command line. |
disc_cause |
Cause for a connection to be taken offline. Only Accounting-Stop packets carry this attribute. Disconnection causes include:
|
disc_cause_ext |
Extension of the disc-cause attribute to support vendor-specific causes for a connection to be taken offline. Only Accounting-Stop packets carry this attribute. Extended disconnection causes include:
|
dnaverage |
Average downstream rate, in bit/s. |
dnpeak |
Peak downstream rate, in bit/s. |
dns-servers |
IP address of the primary DNS server. |
elapsed_time |
Online duration of a user, in seconds. |
ftpdir |
Initial directory of an FTP user. |
gw-password |
Password for the gateway during the L2TP tunnel authentication. The value is a string of 1 to 248 characters. If the value contains more than 248 characters, only the first 248 characters are valid. |
idletime |
Period after which an idle session is terminated. If a user does not perform any operation within this period, the system disconnects the user. |
l2tp-hello-interval |
Interval for sending L2TP Hello packets. This attribute is currently not supported. |
l2tp-hidden-avp |
Attribute value pair (AVP) of L2TP. This attribute is currently not supported. |
l2tp-nosession-timeout |
Number of seconds that a tunnel remains active with no sessions before timeout or shutdown. This attribute is currently not supported. |
l2tp-group-num |
L2TP group number. Other L2TP attributes take effect only if this attribute is delivered. Otherwise, other L2TP attributes are ignored. |
l2tp-tos-reflect |
TOS of L2TP. The device does not support this attribute. |
l2tp-tunnel-authen |
Whether an L2TP tunnel is authenticated:
|
l2tp-udp-checksum |
Whether L2TP should perform UDP checksums for data packets. |
nocallback-verify |
No callback authentication is required. |
nohangup |
Whether the device automatically disconnects a user who has executed the autocmd command. This attribute is valid only after the autocmd attribute is configured. The value can be true or false:
|
paks_in |
Number of packets received by the device. |
paks_out |
Number of packets sent by the device. |
priv-lvl |
User level. |
protocol |
A protocol that is a subset of a service. It is valid only for PPP and connection services. Legal values matching service types are as follows:
|
task_id |
Task ID. The task IDs recorded when a task starts and ends must be the same. |
timezone |
Time zone for all timestamps included in this packet. |
tunnel-id |
User name used to authenticate a tunnel in establishment. The value is a string of 1 to 29 characters. If the value contains more than 29 characters, only the first 29 characters are valid. |
tunnel-type |
Tunnel type. The device supports only L2TP tunnels. For L2TP tunnels, the value is 3. |
service |
Service type, which can be accounting or authorization. |
source-ip |
Local IP address of a tunnel. |
upaverage |
Average upstream rate, in bit/s. |
uppeak |
Peak upstream rate, in bit/s. |
Attribute |
Command Line Authorization Packet |
EXEC Authorization Response Packet |
Access User Authorization Response Packet |
---|---|---|---|
acl |
N |
Y |
N |
addr |
N |
N |
Y |
addr-pool |
N |
N |
Y |
autocmd |
N |
Y |
N |
callback-line |
N |
Y |
Y |
cmd |
Y |
N |
N |
cmd-arg |
Y |
N |
N |
dnaverage |
N |
N |
Y |
dnpeak |
N |
N |
Y |
dns-servers |
N |
N |
Y |
ftpdir |
N |
Y |
N |
gw-password |
N |
N |
Y |
idletime |
N |
Y |
N |
ip-addresses |
N |
N |
Y |
l2tp-group-num |
N |
N |
Y |
l2tp-tunnel-authen |
N |
N |
Y |
nocallback-verify |
N |
Y |
N |
nohangup |
N |
Y |
N |
priv-lvl |
N |
Y |
N |
source-ip |
N |
N |
Y |
tunnel-type |
N |
N |
Y |
tunnel-id |
N |
N |
Y |
upaverage |
N |
N |
Y |
Attribute |
Network Accounting Start Packet |
Network Accounting Stop Packet |
Network Interim Accounting Packet |
Connection Accounting Start Packet |
Connection Accounting Stop Packet |
EXEC Accounting Start Packet |
EXEC Accounting Stop Packet |
EXEC Interim Accounting Packet |
System Accounting Stop Packet |
Command Line Accounting Stop Packet |
---|---|---|---|---|---|---|---|---|---|---|
addr |
Y |
Y |
Y |
Y |
Y |
N |
N |
N |
N |
N |
bytes_in |
N |
Y |
Y |
N |
Y |
N |
Y |
Y |
N |
N |
bytes_out |
N |
Y |
Y |
N |
Y |
N |
Y |
Y |
N |
N |
cmd |
N |
N |
N |
Y |
Y |
N |
N |
N |
N |
Y |
disc_cause |
N |
Y |
N |
N |
N |
N |
Y |
Y |
N |
N |
disc_cause_ext |
N |
Y |
N |
N |
N |
N |
Y |
Y |
N |
N |
elapsed_time |
N |
Y |
Y |
N |
Y |
N |
Y |
Y |
Y |
N |
paks_in |
N |
Y |
Y |
N |
Y |
N |
Y |
Y |
N |
N |
paks_out |
N |
Y |
Y |
N |
Y |
N |
Y |
Y |
N |
N |
priv-lvl |
N |
N |
N |
N |
N |
N |
N |
N |
N |
Y |
protocol |
Y |
Y |
Y |
Y |
Y |
N |
N |
N |
N |
N |
service |
Y |
Y |
Y |
Y |
Y |
Y |
Y |
Y |
Y |
Y |
task_id |
Y |
Y |
Y |
Y |
Y |
Y |
Y |
Y |
Y |
Y |
timezone |
Y |
Y |
Y |
Y |
Y |
Y |
Y |
Y |
Y |
Y |
tunnel-id |
N |
N |
N |
N |
N |
N |
N |
N |
N |
N |
tunnel-type |
Y |
N |
N |
N |
N |
N |
N |
N |
N |
N |