View | Details | Raw Unified | Return to bug 51904 | Differences between
and this patch

Collapse All | Expand All

(-)services/univention-ad-connector/modules/univention/connector/ad/password.py (-1 / +1 lines)
 Lines 544-550   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:

Return to bug 51904