|
|
c8cd81 |
From 7a1e1d9f1cb13679c28f12d05b156a08bcc4d856 Mon Sep 17 00:00:00 2001
|
|
|
c8cd81 |
From: Carla Martinez <carlmart@redhat.com>
|
|
|
c8cd81 |
Date: Fri, 29 Jul 2022 13:16:16 +0200
|
|
|
c8cd81 |
Subject: [PATCH] webui: Allow grace login limit
|
|
|
c8cd81 |
|
|
|
c8cd81 |
There was no support for setting the grace login limit on the WebUI. The
|
|
|
c8cd81 |
only way to so was only via CLI:
|
|
|
c8cd81 |
|
|
|
c8cd81 |
`ipa pwpolicy-mod --gracelimit=2 global_policy`
|
|
|
c8cd81 |
|
|
|
c8cd81 |
Thus, the grace login limit must be updated from the policy section and
|
|
|
c8cd81 |
this will reflect also on the user settings (under the 'Password Policy'
|
|
|
c8cd81 |
section)
|
|
|
c8cd81 |
|
|
|
c8cd81 |
Fixes: https://pagure.io/freeipa/issue/9211
|
|
|
c8cd81 |
|
|
|
c8cd81 |
Signed-off-by: Carla Martinez <carlmart@redhat.com>
|
|
|
c8cd81 |
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
|
|
|
c8cd81 |
---
|
|
|
c8cd81 |
install/ui/src/freeipa/policy.js | 3 +++
|
|
|
c8cd81 |
install/ui/src/freeipa/user.js | 5 +++++
|
|
|
c8cd81 |
2 files changed, 8 insertions(+)
|
|
|
c8cd81 |
|
|
|
c8cd81 |
diff --git a/install/ui/src/freeipa/policy.js b/install/ui/src/freeipa/policy.js
|
|
|
c8cd81 |
index fa2028a52b1118b6125f91153280da0a2ffe0584..7ec103636ced0cce34997d81a02b25ba73bda33f 100644
|
|
|
c8cd81 |
--- a/install/ui/src/freeipa/policy.js
|
|
|
c8cd81 |
+++ b/install/ui/src/freeipa/policy.js
|
|
|
c8cd81 |
@@ -72,6 +72,9 @@ return {
|
|
|
c8cd81 |
{
|
|
|
c8cd81 |
name: 'cospriority',
|
|
|
c8cd81 |
required: true
|
|
|
c8cd81 |
+ },
|
|
|
c8cd81 |
+ {
|
|
|
c8cd81 |
+ name: 'passwordgracelimit'
|
|
|
c8cd81 |
}
|
|
|
c8cd81 |
]
|
|
|
c8cd81 |
}]
|
|
|
c8cd81 |
diff --git a/install/ui/src/freeipa/user.js b/install/ui/src/freeipa/user.js
|
|
|
c8cd81 |
index a580db03599457eefd85f8c23d74c284946393c7..b47c97f72008f2f4e75b4cb88e9ff6756827b26e 100644
|
|
|
c8cd81 |
--- a/install/ui/src/freeipa/user.js
|
|
|
c8cd81 |
+++ b/install/ui/src/freeipa/user.js
|
|
|
c8cd81 |
@@ -318,6 +318,11 @@ return {
|
|
|
c8cd81 |
label: '@mo-param:pwpolicy:krbpwdlockoutduration:label',
|
|
|
c8cd81 |
read_only: true,
|
|
|
c8cd81 |
measurement_unit: 'seconds'
|
|
|
c8cd81 |
+ },
|
|
|
c8cd81 |
+ {
|
|
|
c8cd81 |
+ name: 'passwordgracelimit',
|
|
|
c8cd81 |
+ label: '@mo-param:pwpolicy:passwordgracelimit:label',
|
|
|
c8cd81 |
+ read_only: true
|
|
|
c8cd81 |
}
|
|
|
c8cd81 |
]
|
|
|
c8cd81 |
},
|
|
|
c8cd81 |
--
|
|
|
c8cd81 |
2.37.2
|
|
|
c8cd81 |
|