From 525fb71389a0837cdb31de222d10ff4f2043d209 Mon Sep 17 00:00:00 2001
From: Adam Young <ayo...@redhat.com>
Date: Mon, 3 Jan 2011 13:13:56 -0500
Subject: [PATCH] fix krbtpolicy update

krbtpolicy requires null pkey, and without it, update breaks.
---
 install/static/details.js |    8 ++++++--
 install/static/policy.js  |    4 ++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/install/static/details.js b/install/static/details.js
index 1e510692922a126d24fd2f1cb257124816e88d98..a39bc48cc9e3e9255ff7171129ffad05109ab3a6 100644
--- a/install/static/details.js
+++ b/install/static/details.js
@@ -638,8 +638,12 @@ function ipa_details_update(on_win, on_fail)
             on_fail(xhr, text_status, error_thrown);
     }
 
-    if (!pkey)
-        return;
+    /*
+      The check
+      if (!pkey) {   return; }
+      used to happen here, but it breaks krbtpolicy, which allows a null pkey
+      and usually requires it.
+    */
 
     var values;
     var modlist = {'all': true, 'setattr': [], 'addattr': [], 'rights': true};
diff --git a/install/static/policy.js b/install/static/policy.js
index 97e838f933418d862ea8be9f3cc6e74a038fcac1..d8cfbec99ffe683b22dd994caef0c8e04f018f53 100644
--- a/install/static/policy.js
+++ b/install/static/policy.js
@@ -588,8 +588,8 @@ IPA.add_entity(function (){
 */
 
 ipa_entity_set_details_definition('krbtpolicy', [
-    ipa_stanza({name:'identity', label:'Krbtpolicy Location Details'}).
-        input({name:'cn'}).
+    ipa_stanza({name:'identity', label:'Kerberos ticket policy'}).
+        input({name:'uid'}).
         input({name:'krbmaxrenewableage'}).
         input({name:'krbmaxticketlife'})
 ]);
-- 
1.7.3.4

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

Reply via email to