From 7e49dec0ccabeb7df0c4ab7ca7e94282620fdd17 Mon Sep 17 00:00:00 2001 From: Mark Reynolds Date: Jul 25 2018 22:16:10 +0000 Subject: Ticket 49837 - Add new password policy attributes to UI Description: Added new password policy features to UI. Also made change to instance creation to line up with changes going on in lib389 https://pagure.io/389-ds-base/issue/49837 Reviewed by: spichugi(Thanks!) --- diff --git a/src/cockpit/389-console/css/ds.css b/src/cockpit/389-console/css/ds.css index bf77a6b..833dfa3 100644 --- a/src/cockpit/389-console/css/ds.css +++ b/src/cockpit/389-console/css/ds.css @@ -370,8 +370,25 @@ Zbutton:focus { } .ds-input { + margin-top: 5px !important; + padding-right: 5px !important; + padding-left: 5px !important; +} + +.ds-pw-input { + margin-top: 5px; padding-right: 5px; padding-left: 5px !important; + min-width: 65px !important; + max-width: 65px !important; +} + +.ds-pw-list-input { + margin-top: 5px; + padding-right: 5px; + padding-left: 5px !important; + min-width: 150px !important; + max-width: 150px !important; } .ds-ro-input { @@ -885,6 +902,12 @@ Zbutton:focus { width: 285px !important; } +.ds-pw-list-label { + margin-top: 7px !important; + margin-bottom: 7px !important; + width: 200px !important; +} + .ds-passwd-label { width: 300px !important; } @@ -1281,7 +1304,7 @@ option { } .ds-checkbox-group { - margin-top: 10px; + margin-top: 10px !important; } .ds-alert-header { diff --git a/src/cockpit/389-console/js/servers.js b/src/cockpit/389-console/js/servers.js index 358987d..824d96b 100644 --- a/src/cockpit/389-console/js/servers.js +++ b/src/cockpit/389-console/js/servers.js @@ -1384,7 +1384,7 @@ $(document).ready( function() { // TODO - lookup the entry, and get the current settings // Set the form header and fields - $("#local-pwp-form-header").html("Edit Local Password Policy"); + $("#local-pwp-header").html("Edit Local Password Policy"); $("#local-entry-dn").val(policy_name); // Set radio button for type of policy - TODO diff --git a/src/cockpit/389-console/servers.html b/src/cockpit/389-console/servers.html index 93b6728..d357a5b 100644 --- a/src/cockpit/389-console/servers.html +++ b/src/cockpit/389-console/servers.html @@ -354,7 +354,7 @@


Password Syntax Settings

-
+
@@ -384,10 +384,6 @@ "Reject passwords with fewer than this many lowercase characters (passwordMinLowers).">Minimum Lowercase Characters
-
-
-
-
- -
-
@@ -414,6 +405,50 @@ class="ds-input" type="text" id="passwordmintokenlength" size="5"/>
+
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+