diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-09-02 16:37:42 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-09-21 18:02:35 +0200 |
commit | 3e0b54867e22523cffda3b80e179df89b6d81bcd (patch) | |
tree | 072d8c13477a480752dd6b6b01774a8b28428427 /src/home/homed-home.c | |
parent | 61a29a020c5c6611a22a84c1456e8da7aa656194 (diff) | |
download | systemd-3e0b54867e22523cffda3b80e179df89b6d81bcd.tar.gz |
user-record: don't refuse login when last pw change time is in the future
The RTC is like just off, it's a weird system state, let's continue
without requiring pw change.
Diffstat (limited to 'src/home/homed-home.c')
-rw-r--r-- | src/home/homed-home.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/home/homed-home.c b/src/home/homed-home.c index e4757c724a..328ec32fd3 100644 --- a/src/home/homed-home.c +++ b/src/home/homed-home.c @@ -1574,7 +1574,7 @@ static int home_may_change_password( assert(h); r = user_record_test_password_change_required(h->record); - if (IN_SET(r, -EKEYREVOKED, -EOWNERDEAD, -EKEYEXPIRED)) + if (IN_SET(r, -EKEYREVOKED, -EOWNERDEAD, -EKEYEXPIRED, -ESTALE)) return 0; /* expired in some form, but changing is allowed */ if (IN_SET(r, -EKEYREJECTED, -EROFS)) return sd_bus_error_setf(error, SD_BUS_ERROR_ACCESS_DENIED, "Expiration settings of account %s do not allow changing of password.", h->user_name); |