Bug 510735 - ipa pwpolicy minlength: Need to define and enforce acceptable data ranges
ipa pwpolicy minlength: Need to define and enforce acceptable data ranges
Status: CLOSED DUPLICATE of bug 510740
Product: freeIPA
Classification: Community
Component: ipa-admintools (Show other bugs)
All Linux
high Severity medium
: ---
: ---
Assigned To: Rob Crittenden
Chandrasekar Kannan
Depends On:
  Show dependency treegraph
Reported: 2009-07-10 10:15 EDT by Jenny Galipeau
Modified: 2015-01-04 18:39 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-11-23 08:16:33 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jenny Galipeau 2009-07-10 10:15:50 EDT
Description of problem:

Right now there is no defined or enforce data ranges for minlength.  You can
define the minimum password length with positive integers up to
299999999.  This is unrealistic.

[root@jennyv2 ~]# ipa pwpolicy-mod --minlength=3000000000
ipa: ERROR: non-public: TypeError: value: need a <type 'int'>; got 3000000000L (a <type 'long'>)
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/ipalib/backend.py", line 110, in execute
    result = self.Command[_name](*args, **options)
  File "/usr/lib/python2.4/site-packages/ipalib/plugable.py", line 410, in __call__
    return self['__call__'](*args, **kw)
  File "/usr/lib/python2.4/site-packages/ipalib/frontend.py", line 396, in __call__
  File "/usr/lib/python2.4/site-packages/ipalib/frontend.py", line 583, in validate
  File "/usr/lib/python2.4/site-packages/ipalib/parameters.py", line 622, in validate
  File "/usr/lib/python2.4/site-packages/ipalib/parameters.py", line 630, in _validate_scalar
    raise TypeError(
TypeError: value: need a <type 'int'>; got 3000000000L (a <type 'long'>)
ipa: ERROR: an internal error has occurred

[root@jennyv2 ~]# ipa pwpolicy-mod --minlength=299999999
Password policy:
  Minimum length: 299999999
Modified password policy.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. see description examples
Actual results:
internal error when minlength is defined over 299999999
values up to 299999999 are accepted

Expected results:
Proper error message and no traceback
only values up to realistic minimum password length are accepted i.e...

Additional info:
Comment 1 Pavel Zuna 2009-11-23 08:16:33 EST

*** This bug has been marked as a duplicate of bug 510740 ***

Note You need to log in before you can comment on or make changes to this bug.