Page MenuHomeVyOS Platform

login: "disable" on a TACACS server is ignored
In progress, LowPublicBUG

Description

The CLI offers set system login tacacs server <address> disable, but a disabled server is still written to /etc/tacplus_servers and /etc/tacplus_nss.conf, so it keeps being used for authentication. The RADIUS templates skip disabled servers; the TACACS templates do not.

Steps to reproduce

set system login tacacs server 100.64.0.21 key secret1
set system login tacacs server 100.64.0.22 key secret2
set system login tacacs server 100.64.0.22 disable
commit

Result

Both files contain server=100.64.0.21:49 and server=100.64.0.22:49.

Expected

Only 100.64.0.21 is listed.

Affected templates: data/templates/login/tacplus_servers.j2 and data/templates/login/tacplus_nss.conf.j2.

I have a fix with a smoketest and will open a PR.

Details

Version
2026.11.26-0016-rolling
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav changed the task status from Open to In progress.Mon, Nov 30, 12:05 PM
Viacheslav assigned this task to jamesperu.
Viacheslav changed the subtype of this task from "Task" to "Bug".