Univention Bugzilla – Attachment 9413 Details for
Bug 35013
Make account-lockout-threshold configurable via UMC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
s4connector_sync_lockoutThreshold.patch
s4connector_sync_lockoutThreshold.patch (text/plain), 1.59 KB, created by
Arvid Requate
on 2018-02-21 20:51:25 CET
(
hide
)
Description:
s4connector_sync_lockoutThreshold.patch
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2018-02-21 20:51:25 CET
Size:
1.59 KB
patch
obsolete
>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]
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 35013
: 9413