webui: Allow grace login limit

There was no support for setting the grace login limit on the WebUI. The
only way to so was only via CLI:

   `ipa pwpolicy-mod --gracelimit=2 global_policy`

Thus, the grace login limit must be updated from the policy section and
this will reflect also on the user settings (under the 'Password Policy'
section)

Fixes: https://pagure.io/freeipa/issue/9211

Signed-off-by: Carla Martinez <carlmart@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
Carla Martinez 2022-07-29 13:16:16 +02:00
parent 6033d495d1
commit 42b2607a6f
2 changed files with 8 additions and 0 deletions

View File

@ -72,6 +72,9 @@ return {
{
name: 'cospriority',
required: true
},
{
name: 'passwordgracelimit'
}
]
}]

View File

@ -318,6 +318,11 @@ return {
label: '@mo-param:pwpolicy:krbpwdlockoutduration:label',
read_only: true,
measurement_unit: 'seconds'
},
{
name: 'passwordgracelimit',
label: '@mo-param:pwpolicy:passwordgracelimit:label',
read_only: true
}
]
},