Lines 114-120
def ucs2con(s4connector, key, object):
|
Link Here
|
---|
|
114 |
s4_time = "0" |
114 |
s4_time = "0" |
115 |
ml.append((ldap.MOD_REPLACE, s4_attr, [s4_time])) |
115 |
ml.append((ldap.MOD_REPLACE, s4_attr, [s4_time])) |
116 |
|
116 |
|
117 |
sync_integers = [('sambaPwdHistoryLength', 'pwdHistoryLength'), ('sambaMinPwdLength', 'minPwdLength'), ('univentionSamba4pwdProperties', 'pwdProperties')] |
117 |
sync_integers = [('sambaPwdHistoryLength', 'pwdHistoryLength'), ('sambaMinPwdLength', 'minPwdLength'), ('univentionSamba4pwdProperties', 'pwdProperties'), ('sambaLockoutThreshold', 'lockoutThreshold')] |
118 |
for (ucs_attr, s4_attr) in sync_integers: |
118 |
for (ucs_attr, s4_attr) in sync_integers: |
119 |
ucs_val = object['attributes'].get(ucs_attr, str(0)) |
119 |
ucs_val = object['attributes'].get(ucs_attr, str(0)) |
120 |
s4_val = s4base_attr.get(s4_attr, [0])[0] |
120 |
s4_val = s4base_attr.get(s4_attr, [0])[0] |
Lines 155-161
def con2ucs(s4connector, key, object):
|
Link Here
|
---|
|
155 |
sambadomainnameObject[ucs_attr] = [str(s4_time), 'seconds'] |
155 |
sambadomainnameObject[ucs_attr] = [str(s4_time), 'seconds'] |
156 |
modify = True |
156 |
modify = True |
157 |
|
157 |
|
158 |
sync_integers = [('passwordHistory', 'pwdHistoryLength'), ('passwordLength', 'minPwdLength'), ('domainPwdProperties', 'pwdProperties')] |
158 |
sync_integers = [('passwordHistory', 'pwdHistoryLength'), ('passwordLength', 'minPwdLength'), ('domainPwdProperties', 'pwdProperties'), ('badLockoutAttempts', 'lockoutThreshold')] |
159 |
for (ucs_attr, s4_attr) in sync_integers: |
159 |
for (ucs_attr, s4_attr) in sync_integers: |
160 |
ucs_val = sambadomainnameObject.get(ucs_attr, 0) |
160 |
ucs_val = sambadomainnameObject.get(ucs_attr, 0) |
161 |
s4_val = object['attributes'].get(s4_attr, [None])[0] |
161 |
s4_val = object['attributes'].get(s4_attr, [None])[0] |