]> git.ipfire.org Git - thirdparty/systemd.git/commit
homectl: pick up cached/credential store/env var passwords *before* issuing first... 19411/head
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Apr 2021 14:31:12 +0000 (16:31 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Apr 2021 21:22:37 +0000 (23:22 +0200)
commit57bb9bcba5563c040ee0c41f58e3730a006a8de2
tree177be33afa12994d71acd3e55e33fcca77f72d16
parent7bdbafc261f807b68fd5622500c70bbf363ae7c0
homectl: pick up cached/credential store/env var passwords *before* issuing first request

Previously, we'd generally attempt the operation first, without any
passwords, and only query for a password if that operation then fails
and asks for one. This is done to improve compatibility with
password-less authentication schemes, such as security tokens and
similar.

This patch modifies this slightly: if a password can be acquired cheaply
via the keyring password cache, the $CREDENTIALS_PATH credential store,
or the $PASSWORD/$PIN environment variables, acquire it *before* issuing
the first requested.

This should save us a pointless roundtrip, and should never hurt.
src/home/homectl.c