Authorization

This scenario shows how to set up per-command authorization.

Tacacs Method Privileged User

Description

A TACACS+ server configured to deny the show date command and allow everything else is added to a TACACS+ group, which is added to an AAA list. This list is assigned to CLI’s command authorization. Whenever a user attempts to run a command, this is sent to the server and is only executed when authorized to do so.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 10.215.168.64/24
set system aaa group tacacs tacgroup1 server serv1
set system aaa list list1 method 1 group tacacs tacgroup1
set system aaa server tacacs serv1 address 10.215.168.1
set system aaa server tacacs serv1 encrypted-key U2FsdGVkX19iSBNZH/+9z2zIKYIXZ+8CqrbijoLnyiU=
set system cli aaa authorization list1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system login user testadmin authentication encrypted-password '$6$mPP.eRA/.CxNfvz8$kPTgIbeOaH5n7smgjERTO6ql1wDmWaOuogyNVfbzEeMMPIyDnx2edvAkrZj.xUzGICGJC3kNzDNLmwQQzixAE1'
set system login user testadmin role admin

Step 2: Ping the IP address 10.215.168.1 from DUT0:

admin@DUT0$ ping 10.215.168.1 count 1 size 56 timeout 1
Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data.
64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.137 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.137/0.137/0.137/0.000 ms

Step 3: Run the command show version on DUT0 and expect the following output:

Show output
OS vendor:                 Teldat
OS name:                   OSDx
OS version:                v4.2.10.4
OS Linux kernel:           6.12.95
OS built by:               jenkins@diana
OS build date:             Wed Sep 16 13:15:11 UTC 2026
OS installation:           physical
OS boot mode:              user
License:                   VM_BASE Firewall eth-Rate-Permit-Full

Hardware vendor:           QEMU
Hardware model:            VM
Hardware OEM model:        Standard PC (i440FX + PIIX, 1996)
Hardware version:          pc-i440fx-7.2
Hardware UUID:             61dc8fe7-c044-5eaf-ab68-73890bf22d2d
Hardware architecture:     amd64
Hardware fwid:             iso
Hardware base MAC:         de:ad:be:ef:6c:00
Hardware cpu:              1 x QEMU Virtual CPU version 2.5+ (4 cores)

Last reboot reason:        Panic

Date:                      Wed 16 Sep 2026 20:07:26 +00:00
Uptime:                    1:26:59
CPU load (1m, 5m, 15m):    0.20 0.18 0.16
CPU usage % (1m):          5.08
Storage usage (kB):        420300/8144384
Memory usage (kB):         419304/1572520
Users logged in:           1
Mode (current/next boot):  user/user

Hostname:                  osdx

Step 4: Run the command show date on DUT0 and expect the following output:

Show output
CLI Error: Unauthorized

Note

Commands are expanded before being sent to the authorization server

Step 5: Run the command sh da on DUT0 and expect the following output:

Show output
CLI Error: Unauthorized

Step 6: Run the command show running on DUT0 and expect the following output:

Show output
# Teldat OSDx VM version v4.2.10.4
# Wed 16 Sep 2026 20:07:26 +00:00
# Warning: Configuration has not been saved
set interfaces ethernet eth0 address 10.215.168.64/24
set system aaa group tacacs tacgroup1 server serv1
set system aaa list list1 method 1 group tacacs tacgroup1
set system aaa server tacacs serv1 address 10.215.168.1
set system aaa server tacacs serv1 encrypted-key U2FsdGVkX19iSBNZH/+9z2zIKYIXZ+8CqrbijoLnyiU=
set system cli aaa authorization list1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system login user testadmin authentication encrypted-password '$6$mPP.eRA/.CxNfvz8$kPTgIbeOaH5n7smgjERTO6ql1wDmWaOuogyNVfbzEeMMPIyDnx2edvAkrZj.xUzGICGJC3kNzDNLmwQQzixAE1'
set system login user testadmin role admin

Tacacs Method Non-Privileged User

Description

In this case, the same scenario is tested but with a non-privileged user called testmonitor.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 10.215.168.64/24
set system aaa group tacacs tacgroup1 server serv1
set system aaa list list1 method 1 group tacacs tacgroup1
set system aaa server tacacs serv1 address 10.215.168.1
set system aaa server tacacs serv1 encrypted-key U2FsdGVkX18n5O+T9aSuQBtifGn8m8Avz5/eSfqD72U=
set system cli aaa authorization list1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system login user testmonitor authentication encrypted-password '$6$bBJ0HfqER4dnIeeC$Q75nH2gjXLcusXAEGKCyU4prT0MjMwHg5.aADEw51yADz0X2S6S1AvRfvK6z76FlFtZMCsN13F/gYe8LpC23p.'
set system login user testmonitor role monitor

Step 2: Ping the IP address 10.215.168.1 from DUT0:

admin@DUT0$ ping 10.215.168.1 count 1 size 56 timeout 1
Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data.
64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.212 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.212/0.212/0.212/0.000 ms

Step 3: Run the command show version on DUT0 and expect the following output:

Show output
OS vendor:                 Teldat
OS name:                   OSDx
OS version:                v4.2.10.4
OS Linux kernel:           6.12.95
OS built by:               jenkins@diana
OS build date:             Wed Sep 16 13:15:11 UTC 2026
OS installation:           physical
OS boot mode:              user
License:                   VM_BASE Firewall eth-Rate-Permit-Full

Hardware vendor:           QEMU
Hardware model:            VM
Hardware OEM model:        Standard PC (i440FX + PIIX, 1996)
Hardware version:          pc-i440fx-7.2
Hardware UUID:             61dc8fe7-c044-5eaf-ab68-73890bf22d2d
Hardware architecture:     amd64
Hardware fwid:             iso
Hardware base MAC:         de:ad:be:ef:6c:00
Hardware cpu:              1 x QEMU Virtual CPU version 2.5+ (4 cores)

Last reboot reason:        Panic

Date:                      Wed 16 Sep 2026 20:07:37 +00:00
Uptime:                    1:27:10
CPU load (1m, 5m, 15m):    0.17 0.17 0.15
CPU usage % (1m):          6.36
Storage usage (kB):        420300/8144384
Memory usage (kB):         408592/1572520
Users logged in:           1
Mode (current/next boot):  user/user

Hostname:                  osdx

Step 4: Run the command show date on DUT0 and expect the following output:

Show output
CLI Error: Unauthorized

Step 5: Run the command show running on DUT0 and expect the following output:

Show output
CLI Error: Insufficient privileges