feat(login-sources): where a device checks a login, and what each place asks for, 4.50.0 (NetOrk/netork#662)
driver / standard (pull_request) Successful in 20s
driver / lint (pull_request) Successful in 17s
driver / types (pull_request) Successful in 1m1s
driver / test (3.12) (pull_request) Successful in 1m22s
driver / test (3.13) (pull_request) Successful in 1m13s
driver / lowest (pull_request) Successful in 43s
driver / build (pull_request) Successful in 29s
driver / security (pull_request) Successful in 1m0s
CI / driver (pull_request) Successful in 3m0s
driver / publish (pull_request) Skipped
driver / standard (pull_request) Successful in 20s
driver / lint (pull_request) Successful in 17s
driver / types (pull_request) Successful in 1m1s
driver / test (3.12) (pull_request) Successful in 1m22s
driver / test (3.13) (pull_request) Successful in 1m13s
driver / lowest (pull_request) Successful in 43s
driver / build (pull_request) Successful in 29s
driver / security (pull_request) Successful in 1m0s
CI / driver (pull_request) Successful in 3m0s
driver / publish (pull_request) Skipped
LoginSourceDict names one source with the device's word for its kind and what it asks for: password, password_otp, external or unknown. WebLoginAuthDict is what a driver's get_web_login_auth returns, every source the web interface tries, in the device's order. SshServerAuthDict takes password_sources and server_enabled for a platform that writes sshd_config itself.
This commit is contained in:
1 parent
07920941c8
commit
d778c805c1
7 files changed
+163
-2
No files matched your search
@@ -354,6 +354,15 @@ login user and followed through `@include`, `include` and `substack`. Which of t
|
||||
second factor is the consumer's call. `Match` blocks are not read. `OpenSshServerMixin`
|
||||
carries it; a driver can also mix it in alone and supply `run_command`.
|
||||
|
||||
`login_sources` describes where a device checks a person's login, for platforms that try a
|
||||
login against a list of authentication servers and let in whatever the first one accepts
|
||||
(OPNsense). A driver that can read its web interface's list implements
|
||||
`get_web_login_auth() -> WebLoginAuthDict`: each source with its name, the device's word for
|
||||
its kind, and what it asks for (`password`, `password_otp`, `external` or `unknown`). Such a
|
||||
platform's `get_ssh_server_auth` may add `password_sources` (what checks an SSH password)
|
||||
and `server_enabled` (False when SSH is off) to `SshServerAuthDict`. Which source counts as
|
||||
a second factor is the consumer's call.
|
||||
|
||||
`SudoHistoryMixin` (`get_history_sudo_lines`, `remove_history_sudo_lines`) deals with what
|
||||
a driver left behind when it typed `echo '<password>' | sudo -S -p "" …` into an interactive
|
||||
shell: that line, password and all, in the login user's shell history, and files its partial
|
||||
|
||||
Reference in new issue
Block a user