diff --git a/CHANGELOG.md b/CHANGELOG.md index 18274be..659a217 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,27 @@ recorded here; their history is the git log. ## [Unreleased] +## [4.50.0] - 2026-11-28 + +### Added +- `LoginAccountsMixin.get_login_accounts()`: every account on a Linux host a person can + log in with, read with one fixed, read-only command (NetOrk/netork#2707). Root and UID + 1000 on with a login shell (`login_capable`), from `/etc/passwd` -- name, UID, home and + shell only, never the comment field; accounts from a directory are not there and not + read. Each with its last login (ISO, UTC), where it came from and which tool told it: + the newest of `lastlog2`, `lastlog`, `wtmpdb last` and `last`, so a host upgraded to + lastlog2 or a desktop login only wtmp saw still reads right. Its password state + (`passwd -S`: `set`, `locked`, `none`), password change, password and account expiry + (`chage -l`: an ISO date, `never`, `must_change`), and `locked` -- the password locked or + the account expired on the host's date. The failed attempts since the last login as a + number: from `lastb` (the newest `FAILED_LOGINS_READ`, 1000, per account; + `failed_logins_capped` when reached), else `pam_faillock`'s tally. `LC_ALL=C`, no stdin, + no password hash read. Root first; where root is refused, as the login user, when the + lock, the expiry and the failures are `None`. A driver supplies + `_run_login_accounts_command(command, *, privileged)`. +- `parse_login_accounts`, `LOGIN_ACCOUNTS_COMMAND`, `login_capable`, and the + `LoginAccountDict` and `LoginAccountsDict` shapes (in `login_accounts`). + ## [4.49.0] - 2026-11-28 ### Added diff --git a/pyproject.toml b/pyproject.toml index 2067fbf..b468a0d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "napalm-device-types" -version = "4.49.0" +version = "4.50.0" description = "Abstract device-type base classes for NAPALM drivers" readme = "README.md" requires-python = ">=3.12"