feat(logins): get_login_accounts through LoginAccountsMixin, 0.21.0 (NetOrk/netork#2707) #89

Merged
christianmanivong merged 3 commits from feature/host-logins into main 2026-11-28 10:06:15 +00:00
Owner

get_login_accounts() through napalm-device-types' LoginAccountsMixin (4.51.0, NAPALM/napalm-device-types feature/host-logins): every account on the host a person can log in with, its last login, lock and expiry, and the failed attempts since its last login (NetOrk/netork#2707).

The transport runs the shared, read-only command on an exec channel (a full btmp makes a long report), as root first and as the login user where root is refused. Rides along in _readings.py like the hardening transport, so linux.py does not grow. OpenMediaVault and QNAP have it through LinuxDriver.

Depends on napalm-device-types 4.51.0 (>=4.51.0); renumbered after v4.50.0 went to device-types #140. Tests: TestGetLoginAccounts in tests/test_linux.py.

Version: 0.21.0, the next free version after the v0.20.0 tag. Note: NAPALM/napalm-linux#88 still claims 0.20.0 and is to be bumped by whoever merges it; this PR does not touch it.

`get_login_accounts()` through napalm-device-types' `LoginAccountsMixin` (4.51.0, NAPALM/napalm-device-types feature/host-logins): every account on the host a person can log in with, its last login, lock and expiry, and the failed attempts since its last login (NetOrk/netork#2707). The transport runs the shared, read-only command on an exec channel (a full btmp makes a long report), as root first and as the login user where root is refused. Rides along in `_readings.py` like the hardening transport, so `linux.py` does not grow. OpenMediaVault and QNAP have it through `LinuxDriver`. Depends on napalm-device-types 4.51.0 (`>=4.51.0`); renumbered after v4.50.0 went to device-types #140. Tests: `TestGetLoginAccounts` in `tests/test_linux.py`. Version: 0.21.0, the next free version after the v0.20.0 tag. Note: NAPALM/napalm-linux#88 still claims 0.20.0 and is to be bumped by whoever merges it; this PR does not touch it.
christianmanivong added 2 commits 2026-11-28 02:53:22 +00:00
The transport runs the shared, read-only command on an exec channel, as root
first for the lock, the expiry and the failed logins, and as the login user
where root is refused.
chore(release): 0.21.0
driver / standard (pull_request) Successful in 18s
driver / lint (pull_request) Successful in 15s
driver / types (pull_request) Failing after 58s
driver / test (3.12) (pull_request) Failing after 49s
driver / test (3.13) (pull_request) Failing after 40s
driver / lowest (pull_request) Failing after 23s
driver / build (pull_request) Successful in 28s
driver / security (pull_request) Failing after 1m1s
CI / driver (pull_request) Failing after 2m23s
driver / publish (pull_request) Skipped
e0c083e0c0
christianmanivong added 1 commit 2026-11-28 07:35:10 +00:00
chore(release): 0.21.0 needs napalm-device-types 4.51.0, where LoginAccountsMixin landed
driver / standard (pull_request) Successful in 16s
driver / lint (pull_request) Successful in 13s
driver / types (pull_request) Successful in 1m1s
driver / test (3.12) (pull_request) Successful in 1m3s
driver / test (3.13) (pull_request) Successful in 53s
driver / lowest (pull_request) Successful in 28s
driver / build (pull_request) Successful in 27s
driver / security (pull_request) Successful in 1m6s
CI / driver (pull_request) Successful in 2m38s
driver / publish (pull_request) Skipped
ea1ed65ace
christianmanivong merged commit 2519113863 into main 2026-11-28 10:06:15 +00:00
Sign in to join this conversation.