diff options
author | Rob Crittenden <rcritten@redhat.com> | 2011-08-24 18:10:22 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-08-24 15:26:20 -0400 |
commit | 33fb16067a9dd181a1d54194b9820279f549bc24 (patch) | |
tree | dabdc385897af1aa577be21d54bceca39b517519 /ipalib/parameters.py | |
parent | 5d9203bb88db976f7d60ca1f1996c53eac4de8c0 (diff) | |
download | freeipa-33fb16067a9dd181a1d54194b9820279f549bc24.tar.gz freeipa-33fb16067a9dd181a1d54194b9820279f549bc24.tar.xz freeipa-33fb16067a9dd181a1d54194b9820279f549bc24.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.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ipalib/parameters.py b/ipalib/parameters.py index e1c0b093a..e7e75782a 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 |