Verified Commit bbdd9ccd authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

dsa: special case preining in the housekeeping job



I think he is the first and only to change status from DD to DM

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 099e6c2b
Pipeline #373688 passed with stage
in 5 minutes and 59 seconds
......@@ -215,7 +215,11 @@ class CheckLDAPConsistency(hk.Task):
# self.IDENTIFIER, self.hk.link(person), const.ALL_STATUS_DESCS[person.status])
if person.status_changed > self.email_forwarding_cutoff:
if dsa_status == "retiring" and person.status != const.STATUS_EMERITUS_DD:
if person.ldap_fields.uid == "preining":
# special case preining; he is marked as retired in LDAP, but the account
# is simply locked while he became a DM.
pass
elif dsa_status == "retiring" and person.status != const.STATUS_EMERITUS_DD:
Inconsistency.objects.found(
self.IDENTIFIER,
f"person has accountStatus '{entry.single('accountStatus')}'"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment