diff --git a/services/univention-s4-connector/modules/univention/s4connector/s4/dc.py b/services/univention-s4-connector/modules/univention/s4connector/s4/dc.py index 9489bc191c..2fe87657e9 100644 --- a/services/univention-s4-connector/modules/univention/s4connector/s4/dc.py +++ b/services/univention-s4-connector/modules/univention/s4connector/s4/dc.py @@ -114,7 +114,7 @@ def ucs2con(s4connector, key, object): s4_time = "0" ml.append((ldap.MOD_REPLACE, s4_attr, [s4_time])) - sync_integers = [('sambaPwdHistoryLength', 'pwdHistoryLength'), ('sambaMinPwdLength', 'minPwdLength'), ('univentionSamba4pwdProperties', 'pwdProperties')] + sync_integers = [('sambaPwdHistoryLength', 'pwdHistoryLength'), ('sambaMinPwdLength', 'minPwdLength'), ('univentionSamba4pwdProperties', 'pwdProperties'), ('sambaLockoutThreshold', 'lockoutThreshold')] for (ucs_attr, s4_attr) in sync_integers: ucs_val = object['attributes'].get(ucs_attr, str(0)) s4_val = s4base_attr.get(s4_attr, [0])[0] @@ -155,7 +155,7 @@ def con2ucs(s4connector, key, object): sambadomainnameObject[ucs_attr] = [str(s4_time), 'seconds'] modify = True - sync_integers = [('passwordHistory', 'pwdHistoryLength'), ('passwordLength', 'minPwdLength'), ('domainPwdProperties', 'pwdProperties')] + sync_integers = [('passwordHistory', 'pwdHistoryLength'), ('passwordLength', 'minPwdLength'), ('domainPwdProperties', 'pwdProperties'), ('badLockoutAttempts', 'lockoutThreshold')] for (ucs_attr, s4_attr) in sync_integers: ucs_val = sambadomainnameObject.get(ucs_attr, 0) s4_val = object['attributes'].get(s4_attr, [None])[0]