Lines 544-553
def password_sync(connector, key, ucs_object):
|
Link Here
|
---|
|
544 |
|
544 |
|
545 |
# update shadowMax (set to value of univentionPWExpiryInterval, otherwise delete) and |
545 |
# update shadowMax (set to value of univentionPWExpiryInterval, otherwise delete) and |
546 |
# krb5PasswordEnd (set to today + univentionPWExpiryInterval, otherwise delete) |
546 |
# krb5PasswordEnd (set to today + univentionPWExpiryInterval, otherwise delete) |
547 |
if old_shadowMax or new_shadowMax and pwdLastSet != 0: |
547 |
if (old_shadowMax or new_shadowMax) and (pwdLastSet != 0): |
548 |
ud.debug(ud.LDAP, ud.INFO, "password_sync: update shadowMax to %s for %s" % (new_shadowMax, ucs_object['dn'])) |
548 |
ud.debug(ud.LDAP, ud.INFO, "password_sync: update shadowMax to %s for %s" % (new_shadowMax, ucs_object['dn'])) |
549 |
modlist.append(('shadowMax', old_shadowMax, new_shadowMax)) |
549 |
modlist.append(('shadowMax', old_shadowMax, new_shadowMax)) |
550 |
if old_krb5end or new_krb5end and pwdLastSet != 0: |
550 |
if (old_krb5end or new_krb5end) and (pwdLastSet != 0): |
551 |
ud.debug(ud.LDAP, ud.INFO, "password_sync: update krb5PasswordEnd to %s for %s" % (new_krb5end, ucs_object['dn'])) |
551 |
ud.debug(ud.LDAP, ud.INFO, "password_sync: update krb5PasswordEnd to %s for %s" % (new_krb5end, ucs_object['dn'])) |
552 |
modlist.append(('krb5PasswordEnd', old_krb5end, new_krb5end)) |
552 |
modlist.append(('krb5PasswordEnd', old_krb5end, new_krb5end)) |
553 |
else: |
553 |
else: |