diff options
author | Michael Weiser <michael.weiser@gmx.de> | 2019-02-01 11:03:53 +0000 |
---|---|---|
committer | Michael Weiser <michael.weiser@gmx.de> | 2019-02-28 15:10:58 +0000 |
commit | 916cfa191e1e5fac30766c9404a56d2f0d31a708 (patch) | |
tree | b15e0dcd987f2ff84a824bf7df8be444c30d2318 /laps.spec | |
parent | Merge branch 'master' into 'master' (diff) | |
download | laps-916cfa191e1e5fac30766c9404a56d2f0d31a708.tar.gz laps-916cfa191e1e5fac30766c9404a56d2f0d31a708.tar.bz2 laps-916cfa191e1e5fac30766c9404a56d2f0d31a708.zip |
Handle empty password change timestamp LDAP attribute
If the password change timestamp LDAP attribute is unset, e.g. because
the host has been freshly added, the search will return an empty value
which will cause an error message from datetime.py:
Traceback (most recent call last):
File "src/usr/share/laps/dependencies/datetime.py", line 47, in <module>
print action(float(timestamp))
ValueError: could not convert string to float:
With this change we initialise ts_epoch to zero and leave it at that if
the attribute is not set to avoid the error and cause an immediate
password change.
Diffstat (limited to 'laps.spec')
0 files changed, 0 insertions, 0 deletions