Bug 53574 - UDM users/user lockedTime unmap broken in Python 3
UDM users/user lockedTime unmap broken in Python 3
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Users
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-0-errata
Assigned To: Florian Best
Felix Botner
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-07-14 01:47 CEST by Florian Best
Modified: 2021-08-04 16:25 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2021-07-14 01:47:40 CEST
The unmapping of UDM users/user "lockedTime" is broken in Python 3:
A value 0 always gets unmapped as "16010101000000Z".

>>> u['lockedTime']
'16010101000000Z'
>>> u.oldattr['sambaBadPasswordTime']
[b'0']
Comment 2 Florian Best univentionstaff 2021-07-14 02:03:58 CEST
Fixed in:

univention-directory-manager-modules.yaml
559a316c1cca | Bug #53574: fix Python 3 compatibility of users/user unmapWindowsFiletime() mapWindowsFiletime()

univention-directory-manager-modules (15.0.11-12)
559a316c1cca | Bug #53574: fix Python 3 compatibility of users/user unmapWindowsFiletime() mapWindowsFiletime()
Comment 3 Felix Botner univentionstaff 2021-07-15 08:29:22 CEST
OK

sambaBadPasswordTime: 0
udm users/user list --filter username=test1| grep lockedTime
lockedTime: 0

sambaBadPasswordTime: 132707401590000000
udm users/user list --filter username=test1| grep lockedTime
  lockedTime: 20210714124239Z
  
sambaBadPasswordTime: 1626266698
udm users/user list --filter username=test1| grep lockedTime
  lockedTime: 16010101000242Z
  

OK yaml
Comment 4 Erik Damrose univentionstaff 2021-08-04 16:25:43 CEST
<https://errata.software-univention.de/#/?erratum=5.0x61>