Added measurement units for kerberos ticket policy.

https://fedorahosted.org/freeipa/ticket/2444

Note: patch depends on pvoborni-0168.
--
Petr Vobornik

From 7bfff70733b061ebd832c706d98cbb5f5521a4dc Mon Sep 17 00:00:00 2001
From: Petr Vobornik <pvobo...@redhat.com>
Date: Mon, 9 Jul 2012 17:28:08 +0200
Subject: [PATCH] Web UI: kerberos ticket policy measurement units

Added measurement units for kerberos ticket policy.

https://fedorahosted.org/freeipa/ticket/2444
---
 install/ui/policy.js |   10 ++++++++--
 install/ui/user.js   |    6 ++++--
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/install/ui/policy.js b/install/ui/policy.js
index acad0c8c2c2ba6f2f8c26407627b56c75d79dfb5..ff932bec4a2219d4199298f7da6d28a5b5eba1f8 100644
--- a/install/ui/policy.js
+++ b/install/ui/policy.js
@@ -100,8 +100,14 @@ IPA.krbtpolicy.entity = function(spec) {
                 {
                     name: 'identity',
                     fields: [
-                        'krbmaxrenewableage',
-                        'krbmaxticketlife'
+                        {
+                            name: 'krbmaxrenewableage',
+                            measurement_unit: 'seconds'
+                        },
+                        {
+                            name: 'krbmaxticketlife',
+                            measurement_unit: 'seconds'
+                        }
                     ]
                 }
             ],
diff --git a/install/ui/user.js b/install/ui/user.js
index 24873ecf55d5e9159d77dc061d73f3d2e318e30d..7bb5a57073f3f3178e8c0ad2eee52e20f0b21cc1 100644
--- a/install/ui/user.js
+++ b/install/ui/user.js
@@ -188,12 +188,14 @@ IPA.user.entity = function(spec) {
                         {
                             name: 'krbmaxrenewableage',
                             label: IPA.get_entity_param('krbtpolicy', 'krbmaxrenewableage').label,
-                            read_only: true
+                            read_only: true,
+                            measurement_unit: 'seconds'
                         },
                         {
                             name: 'krbmaxticketlife',
                             label: IPA.get_entity_param('krbtpolicy', 'krbmaxticketlife').label,
-                            read_only: true
+                            read_only: true,
+                            measurement_unit: 'seconds'
                         }
                     ]
                 },
-- 
1.7.7.6

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to