From a75e9df766b69b9c91ba7bc34766a0b5e3bc5f62 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 4 Jun 2008 13:36:04 +0000 Subject: [PATCH] Implemented kerberos service key support. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11214 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/services/kerberos/class_krb_host_keys.inc | 8 ++++++++ .../admin/systems/services/kerberos/krb_host_keys.tpl | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_krb_host_keys.inc b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_krb_host_keys.inc index 0e31d98c2..85cef55f1 100644 --- a/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_krb_host_keys.inc +++ b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_krb_host_keys.inc @@ -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; + } } diff --git a/gosa-plugins/mit-krb5/admin/systems/services/kerberos/krb_host_keys.tpl b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/krb_host_keys.tpl index 641a5295b..a34d95a42 100644 --- a/gosa-plugins/mit-krb5/admin/systems/services/kerberos/krb_host_keys.tpl +++ b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/krb_host_keys.tpl @@ -1,4 +1,6 @@ +{if !$is_service_key}

 

+{/if}

{t}Host key{/t}

{foreach from=$server_list item=item key=key} @@ -21,3 +23,6 @@ {/foreach}
+{if $is_service_key} +

 

+{/if} -- 2.30.2