aboutsummaryrefslogtreecommitdiff
path: root/laps.spec
diff options
context:
space:
mode:
authorMichael Weiser <michael.weiser@gmx.de>2019-02-01 11:03:53 +0000
committerMichael Weiser <michael.weiser@gmx.de>2019-02-28 15:10:58 +0000
commit916cfa191e1e5fac30766c9404a56d2f0d31a708 (patch)
treeb15e0dcd987f2ff84a824bf7df8be444c30d2318 /laps.spec
parentMerge branch 'master' into 'master' (diff)
downloadlaps-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
bgstack15