summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-12-09 23:15:15 +0100
committerChristian Breunig <christian@breunig.cc>2025-12-17 21:27:23 +0100
commit5566e6035b42e99eb874c3c5a35fe72e8435df38 (patch)
tree1ffcb1016fcf4b028021d28846f06d465882dba4 /src/op_mode
parentcd11ba957a33933742304b4efbba77461e803cb3 (diff)
downloadvyos-1x-5566e6035b42e99eb874c3c5a35fe72e8435df38.tar.gz
vyos-1x-5566e6035b42e99eb874c3c5a35fe72e8435df38.zip
login: T8086: replace getpwall() occurances with get_local_passwd_entries()
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").
Diffstat (limited to 'src/op_mode')
-rwxr-xr-xsrc/op_mode/show_users.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/op_mode/show_users.py b/src/op_mode/show_users.py
index c60b9932b..086c8b1e2 100755
--- a/src/op_mode/show_users.py
+++ b/src/op_mode/show_users.py
@@ -13,15 +13,15 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
import argparse
-import pwd
import struct
import sys
from time import ctime
from tabulate import tabulate
from vyos.config import Config
-
+from vyos.utils.auth import get_local_passwd_entries
class UserInfo:
def __init__(self, uid, name, user_type, is_locked, login_time, tty, host):