<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/src/op_mode/show_users.py, branch rolling</title>
<subtitle>VyOS command definitions, scripts, and utilities (mirror of https://github.com/vyos/vyos-1x.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-1x.git/atom?h=rolling</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=rolling'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2025-12-17T20:27:23+00:00</updated>
<entry>
<title>login: T8086: replace getpwall() occurances with get_local_passwd_entries()</title>
<updated>2025-12-17T20:27:23+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2025-12-09T22:15:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=5566e6035b42e99eb874c3c5a35fe72e8435df38'/>
<id>urn:sha1:5566e6035b42e99eb874c3c5a35fe72e8435df38</id>
<content type='text'>
Switch to our custom implementation to avoid NSS/TACACS timeouts as explained
in commit 4c9eaaa96e06 ("login: replace getpwall() user enumeration to avoid
NSS/TACACS timeouts").
</content>
</entry>
<entry>
<title>login: T8086: replace getpwall() user enumeration to avoid NSS/TACACS timeouts</title>
<updated>2025-12-17T20:26:58+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2025-12-09T22:14:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=cd11ba957a33933742304b4efbba77461e803cb3'/>
<id>urn:sha1:cd11ba957a33933742304b4efbba77461e803cb3</id>
<content type='text'>
The previous implementation of "system login" relied on Python's pwd.getpwall()
to enumerate user accounts. This forces a full walk through the NSS stack,
which is acceptable in general but problematic for our use-case. VyOS only
needs information about locally created accounts and not remote accounts
provided via AAA backends such as TACACS or RADIUS.

When TACACS servers are unreachable, NSS lookups become extremely slow due to
repeated timeouts. As a result, any operation triggering pwd.getpwall()
(including configuration commits) can stall for several minutes.

This change introduces a dedicated helper, get_local_passwd_entries(), which
reads /etc/passwd directly and avoids NSS entirely. Since only local UIDs are
relevant, this provides all required data with no external dependencies.

Performance improvement on VyOS 1.4.3 with two unreachable TACACS servers:

  # set system login tacacs server 192.168.1.50 key test123
  # set system login tacacs server 192.168.1.51 key test123

  # time commit

  Before:
    real    3m29.825s
    user    0m0.329s
    sys     0m0.246s

  After:
    real    0m1.464s
    user    0m0.337s
    sys     0m0.195s

This significantly improves commit performance and removes sensitivity to AAA
server outages.
</content>
</entry>
<entry>
<title>T7591: remove copyright years from source files</title>
<updated>2025-06-28T21:16:52+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2025-06-28T18:51:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=1478516ae437f19ebeb7d6ff9b83dd74f8e76758'/>
<id>urn:sha1:1478516ae437f19ebeb7d6ff9b83dd74f8e76758</id>
<content type='text'>
The legal team says years are not necessary so we can go ahead with it, since
it will simplify backporting.

Automatically removed using: git ls-files | grep -v libvyosconfig | xargs sed -i -E \
's/^# Copyright (19|20)[0-9]{2}(-[0-9]{4})? VyOS maintainers.*/# Copyright VyOS maintainers and contributors &lt;maintainers@vyos.io&gt;/g'

In addition we will error-out during "make" if someone re-adds a legacy
copyright notice
</content>
</entry>
<entry>
<title>login: T5628: fix spwd deprecation warning</title>
<updated>2023-10-02T19:17:21+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-10-02T19:17:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=80f08af76db0ccee4d6dc1a99b6d8d90884fa33f'/>
<id>urn:sha1:80f08af76db0ccee4d6dc1a99b6d8d90884fa33f</id>
<content type='text'>
vyos@vyos:~$ show system login users
Username    Type    Locked    Tty    From           Last login
----------  ------  --------  -----  -------------  ------------------------
vyos        vyos    False     pts/0  172.16.33.139  Mon Oct  2 20:42:24 2023
</content>
</entry>
<entry>
<title>[op-mode] T1590 xml-style rewrite of 'show system' operations</title>
<updated>2019-08-16T17:13:20+00:00</updated>
<author>
<name>Dmytro Aleksandrov</name>
<email>alkersan@gmail.com</email>
</author>
<published>2019-08-13T22:21:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=3d94de9b56ef2a6030ef5cea8b307098688c949d'/>
<id>urn:sha1:3d94de9b56ef2a6030ef5cea8b307098688c949d</id>
<content type='text'>
</content>
</entry>
</feed>
