]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: avoid shadow lookups when doing userdb client side 15377/head
authorLennart Poettering <lennart@poettering.net>
Thu, 9 Apr 2020 12:28:56 +0000 (14:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 9 Apr 2020 12:38:14 +0000 (14:38 +0200)
commitb062ca616c778358d4da008a2950615fac74aa24
tree441303d394081cb889c54a89a664480a502ab46e
parented30170ea03195d491c59b1d161325275127d620
logind: avoid shadow lookups when doing userdb client side

Let's not trigger MACs needlessly.

Ideally everybody would turn on userdb, but if people insist in not
doing so, then let's not attempt to open shadow.

It's a bit ugly to implement this, since shadow information is more than
just passwords (but accound validity metadata), and thus userdb's own
"privieleged" scheme is orthogonal to this, but let's still do this for
the client side.

Fixes: #15105
src/login/logind-core.c