From 7a1e1d9f1cb13679c28f12d05b156a08bcc4d856 Mon Sep 17 00:00:00 2001 From: Carla Martinez Date: Fri, 29 Jul 2022 13:16:16 +0200 Subject: [PATCH] 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 Reviewed-By: Florence Blanc-Renaud --- install/ui/src/freeipa/policy.js | 3 +++ install/ui/src/freeipa/user.js | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/install/ui/src/freeipa/policy.js b/install/ui/src/freeipa/policy.js index fa2028a52b1118b6125f91153280da0a2ffe0584..7ec103636ced0cce34997d81a02b25ba73bda33f 100644 --- a/install/ui/src/freeipa/policy.js +++ b/install/ui/src/freeipa/policy.js @@ -72,6 +72,9 @@ return { { name: 'cospriority', required: true + }, + { + name: 'passwordgracelimit' } ] }] diff --git a/install/ui/src/freeipa/user.js b/install/ui/src/freeipa/user.js index a580db03599457eefd85f8c23d74c284946393c7..b47c97f72008f2f4e75b4cb88e9ff6756827b26e 100644 --- a/install/ui/src/freeipa/user.js +++ b/install/ui/src/freeipa/user.js @@ -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 } ] }, -- 2.37.2