summaryrefslogtreecommitdiffstats
path: root/ipalib/parameters.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2011-08-24 18:10:22 -0400
committerRob Crittenden <rcritten@redhat.com>2011-08-24 15:25:53 -0400
commit1936b8050e5ee7861996f370d2171b751f18c1fb (patch)
treea9b63ae4a4a3a388223ebdeb9cd09f683a018fec /ipalib/parameters.py
parent41d89d0d13d25943b7ac084adb58d112557033ca (diff)
downloadfreeipa-1936b8050e5ee7861996f370d2171b751f18c1fb.tar.gz
freeipa-1936b8050e5ee7861996f370d2171b751f18c1fb.tar.xz
freeipa-1936b8050e5ee7861996f370d2171b751f18c1fb.zip
Add option to only prompt once for passwords, use in entitle_register
A Password param always prompted to confirm the entered password. This doesn't make sense if you want to prompt for a password to another system like we do with entitlements. This adds a new boolean option to control the Password prompt parameter. https://fedorahosted.org/freeipa/ticket/1695
Diffstat (limited to 'ipalib/parameters.py')
-rw-r--r--ipalib/parameters.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipalib/parameters.py b/ipalib/parameters.py
index e1c0b093..e7e75782 100644
--- a/ipalib/parameters.py
+++ b/ipalib/parameters.py
@@ -1369,6 +1369,10 @@ class Password(Str):
A parameter for passwords (stored in the ``unicode`` type).
"""
+ kwargs = Str.kwargs + (
+ ('confirm', bool, True),
+ )
+
def _convert_scalar(self, value, index=None):
if isinstance(value, (tuple, list)) and len(value) == 2:
(p1, p2) = value