This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/src/tacacs
Hua Liu f0d88f3c5c
[TACACS] Improve per-command authorization performance by read passwd entry with getpwent (#16460)
Improve per-command authorization performance by read passwd entry with getpwent.

#### Why I did it
Currently per-command authorization will check if user is remote user with getpwnam API, which will trigger tacplus-nss for authentication with TACACS server.
But this is not necessary because when user login the user information already add to local passwd file.
Use getpwent API can directly read from passwd file, this will improve per-command authorization performance.

##### Work item tracking
- Microsoft ADO: 25104723

#### How I did it
Improve per-command authorization performance by read passwd entry with getpwent.

#### How to verify it
Pass all UT.

### Description for the changelog
Improve per-command authorization performance by read passwd entry with getpwent.
2023-10-13 17:43:10 -07:00
..
audisp [CI][doc][build] Trim src folder files trailing blanks (#15162) 2023-05-24 10:01:43 -07:00
bash_tacplus [TACACS] Improve per-command authorization performance by read passwd entry with getpwent (#16460) 2023-10-13 17:43:10 -07:00
nss Write error message to syslog when add user failed or connect to TACACS server failed. (#16240) 2023-09-11 15:35:54 -07:00
pam Ported Marvell armhf build on amd64 host for debian buster to use cross-comp… (#8035) 2022-07-21 14:15:16 -07:00
.gitignore [TACACS+] Add audisp-tacplus for per-command accounting. (#8750) 2021-12-01 11:50:09 +08:00