Code

Implemented kerberos service key support.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 4 Jun 2008 13:36:04 +0000 (13:36 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 4 Jun 2008 13:36:04 +0000 (13:36 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11214 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_krb_host_keys.inc
gosa-plugins/mit-krb5/admin/systems/services/kerberos/krb_host_keys.tpl

index 0e31d98c23419ed5d7d41cba78ff5bcef994113a..85cef55f1adc3170e15e55f1a0af1bada98eff32 100644 (file)
@@ -35,6 +35,7 @@ class krb_host_keys extends plugin
 
   private $init_namingAttr  = "";
   private $namingAttr       = "";
+  private $is_service_key   = FALSE;
 
   public function __construct($config,$object)
   {
@@ -113,6 +114,7 @@ class krb_host_keys extends plugin
     if(!$this->kerberos_support) return("");
     $smarty = get_smarty(); 
     $smarty->assign("server_list",$this->server_list);
+    $smarty->assign("is_service_key" , $this->is_service_key);
     return($smarty->fetch (get_template_path('krb_host_keys.tpl', TRUE,dirname(__FILE__))));
   }
 
@@ -177,6 +179,12 @@ class krb_host_keys extends plugin
       }
     }  
   } 
+
+
+  public function ServiceKey($bool = TRUE)
+  {
+    $this->is_service_key = $bool;
+  }
 }
 
 
index 641a5295bd9b59c288d951ba2daa2829cf3c3b1a..a34d95a42359e61b6e2b104c6423f5c2eb78adbe 100644 (file)
@@ -1,4 +1,6 @@
+{if !$is_service_key}
 <p class="seperator">&nbsp;</p>
+{/if}
 <h2><img class="center" alt="" src="images/lists/locked.png" align="middle">   {t}Host key{/t}</h2>
 <table style="">
 {foreach from=$server_list item=item key=key}
@@ -21,3 +23,6 @@
        </tr>
 {/foreach}
 </table>
+{if $is_service_key}
+<p class="seperator">&nbsp;</p>
+{/if}