Univention Bugzilla – Attachment 6621 Details for
Bug 8429
tracebacks when changing empty values in password policy
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Newest version of patch
8429.patch (text/plain), 1.74 KB, created by
Drees Dormann
on 2015-01-21 16:57:54 CET
(
hide
)
Description:
Newest version of patch
Filename:
MIME Type:
Creator:
Drees Dormann
Created:
2015-01-21 16:57:54 CET
Size:
1.74 KB
patch
obsolete
>Index: modules/univention/admin/mapping.py >=================================================================== >--- modules/univention/admin/mapping.py (Revision 57408) >+++ modules/univention/admin/mapping.py (Arbeitskopie) >@@ -57,6 +57,14 @@ > else: > return '' > >+def ListToIntToString(_list): >+ if _list: >+ try: >+ return int(_list[0]) >+ except (ValueError, TypeError): >+ return '0' >+ return '0' >+ > def ListToLowerString(list): > return StringToLower(ListToString(list)) > >Index: modules/univention/admin/handlers/policies/pwhistory.py >=================================================================== >--- modules/univention/admin/handlers/policies/pwhistory.py (Revision 57408) >+++ modules/univention/admin/handlers/policies/pwhistory.py (Arbeitskopie) >@@ -174,9 +174,9 @@ > > mapping=univention.admin.mapping.mapping() > mapping.register('name', 'cn', None, univention.admin.mapping.ListToString) >-mapping.register('length', 'univentionPWHistoryLen', None, univention.admin.mapping.ListToString) >-mapping.register('expiryInterval', 'univentionPWExpiryInterval', None, univention.admin.mapping.ListToString) >-mapping.register('pwLength', 'univentionPWLength', None, univention.admin.mapping.ListToString) >+mapping.register('length', 'univentionPWHistoryLen', None, univention.admin.mapping.ListToIntToString) >+mapping.register('expiryInterval', 'univentionPWExpiryInterval', None, univention.admin.mapping.ListToIntToString) >+mapping.register('pwLength', 'univentionPWLength', None, univention.admin.mapping.ListToIntToString) > mapping.register('pwQualityCheck', 'univentionPWQualityCheck', None, univention.admin.mapping.ListToString) > mapping.register('requiredObjectClasses', 'requiredObjectClasses') > mapping.register('prohibitedObjectClasses', 'prohibitedObjectClasses')
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 8429
:
5415
|
6581
| 6621