Univention Bugzilla – Attachment 6581 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]
Patch for conversion handling
policy.patch (text/plain), 1.97 KB, created by
Drees Dormann
on 2015-01-08 13:39:07 CET
(
hide
)
Description:
Patch for conversion handling
Filename:
MIME Type:
Creator:
Drees Dormann
Created:
2015-01-08 13:39:07 CET
Size:
1.97 KB
patch
obsolete
>Index: univention-directory-manager-modules/modules/univention/admin/mapping.py >=================================================================== >--- univention-directory-manager-modules/modules/univention/admin/mapping.py (Revision 57172) >+++ univention-directory-manager-modules/modules/univention/admin/mapping.py (Arbeitskopie) >@@ -57,6 +57,15 @@ > else: > return '' > >+def ListToIntToString(list): >+ if len(list)>0: >+ try: >+ result=int(list[0]) >+ except ValueError: >+ return '0' >+ return str(result) >+ return '0' >+ > def ListToLowerString(list): > return StringToLower(ListToString(list)) > >Index: univention-directory-manager-modules/modules/univention/admin/handlers/policies/pwhistory.py >=================================================================== >--- univention-directory-manager-modules/modules/univention/admin/handlers/policies/pwhistory.py (Revision 57172) >+++ univention-directory-manager-modules/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