[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Freeipa-devel] admiyo-0214-1-pwpolicy-priority




From d8c6d615a87a9f8d06260ad06d4caec6ddd55526 Mon Sep 17 00:00:00 2001
From: Adam Young <ayoung redhat com>
Date: Thu, 17 Mar 2011 19:52:52 -0400
Subject: [PATCH] pwpolicy priority
 Priority is now a required field in order to add a new password policy.  Thus, not having the field present means we cannot create one.

https://fedorahosted.org/freeipa/ticket/1102
---
 install/ui/policy.js |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/install/ui/policy.js b/install/ui/policy.js
index 8c954288350d1facf19c52eed92cee5ccb73ae54..a3345fe89fcf2dce0d2661cec8b520614883d12a 100644
--- a/install/ui/policy.js
+++ b/install/ui/policy.js
@@ -621,7 +621,9 @@ IPA.entity_factories.pwpolicy = function() {
                         title: IPA.messages.objects.pwpolicy.add,
                         entity_name:'pwpolicy'
                     }).
-                        field(IPA.text_widget({name: 'cn', undo: false}))));
+                        field(IPA.text_widget({name: 'cn', undo: false})).
+                        field(IPA.text_widget({name: 'cospriority', undo: false}))
+                ));
 
         that.facet(
             IPA.details_facet({name:'details'}).
@@ -634,8 +636,8 @@ IPA.entity_factories.pwpolicy = function() {
                         input({name:'krbminpwdlife'}).
                         input({name:'krbpwdhistorylength'}).
                         input({name:'krbpwdmindiffchars'}).
-                        input({name:'krbpwdminlength'})));
-
+                        input({name:'krbpwdminlength'}).
+                        input({name:'cospriority'})));
         that.create_association_facets();
         that.entity_init();
 
-- 
1.7.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]