summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2009-01-14 22:25:45 -0700
committerJason Gerard DeRose <jderose@redhat.com>2009-01-14 22:25:45 -0700
commita41a7f406f5e5192ed7a8c1b05c76de1826f0d7b (patch)
treed7a1ef7c95e5af74a67e60feffa6ea3a36516ee5
parentec86208a9007ec9febca620c777b80b20e9c360d (diff)
downloadfreeipa-a41a7f406f5e5192ed7a8c1b05c76de1826f0d7b.tar.gz
freeipa-a41a7f406f5e5192ed7a8c1b05c76de1826f0d7b.tar.xz
freeipa-a41a7f406f5e5192ed7a8c1b05c76de1826f0d7b.zip
Updated pwpolicy plugins module to where it can at least be imported
-rw-r--r--ipalib/plugins/f_pwpolicy.py26
1 files changed, 9 insertions, 17 deletions
diff --git a/ipalib/plugins/f_pwpolicy.py b/ipalib/plugins/f_pwpolicy.py
index 87a7d8fa..d914ce72 100644
--- a/ipalib/plugins/f_pwpolicy.py
+++ b/ipalib/plugins/f_pwpolicy.py
@@ -21,40 +21,32 @@
Frontend plugins for password policy.
"""
-from ipalib import frontend
-from ipalib import crud
-from ipalib.frontend import Param
from ipalib import api
-from ipalib import errors
-from ipalib import ipa_types
+from ipalib import Command # Plugin base classes
+from ipalib import Int # Parameter types
-class pwpolicy_mod(frontend.Command):
+class pwpolicy_mod(Command):
'Edit existing password policy.'
takes_options = (
- Param('krbmaxpwdlife?',
+ Int('krbmaxpwdlife?',
cli_name='maxlife',
- type=ipa_types.Int(),
doc='Max. Password Lifetime (days)'
),
- Param('krbminpwdlife?',
+ Int('krbminpwdlife?',
cli_name='minlife',
- type=ipa_types.Int(),
doc='Min. Password Lifetime (hours)'
),
- Param('krbpwdhistorylength?',
+ Int('krbpwdhistorylength?',
cli_name='history',
- type=ipa_types.Int(),
doc='Password History Size'
),
- Param('krbpwdmindiffchars?',
+ Int('krbpwdmindiffchars?',
cli_name='minclasses',
- type=ipa_types.Int(),
doc='Min. Number of Character Classes'
),
- Param('krbpwdminlength?',
+ Int('krbpwdminlength?',
cli_name='minlength',
- type=ipa_types.Int(),
doc='Min. Length of Password'
),
)
@@ -94,7 +86,7 @@ class pwpolicy_mod(frontend.Command):
api.register(pwpolicy_mod)
-class pwpolicy_show(frontend.Command):
+class pwpolicy_show(Command):
'Retrieve current password policy'
def execute(self, *args, **kw):
"""