From 132b7f02d9dd4f72af6190ff7970746255360a98 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 30 May 2008 13:46:03 +0000 Subject: [PATCH] Added kerberos host key generation support git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11124 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/admin/systems/class_servGeneric.inc | 17 +++++++++++++++++ gosa-plugins/systems/admin/systems/server.tpl | 1 + 2 files changed, 18 insertions(+) diff --git a/gosa-plugins/systems/admin/systems/class_servGeneric.inc b/gosa-plugins/systems/admin/systems/class_servGeneric.inc index 2886b19b1..56e7512a0 100644 --- a/gosa-plugins/systems/admin/systems/class_servGeneric.inc +++ b/gosa-plugins/systems/admin/systems/class_servGeneric.inc @@ -53,6 +53,8 @@ class servgeneric extends plugin var $currently_installing = FALSE; var $currently_installing_warned = FALSE; + var $kerberos_key_service = NULL; + function servgeneric (&$config, $dn= NULL, $parent= NULL) { /* Check if FAI is activated */ @@ -64,6 +66,11 @@ class servgeneric extends plugin plugin::plugin ($config, $dn, $parent); + /* Initialize kerberos host key plugin */ + if(class_available("krb_host_keys")){ + $this->kerberos_key_service = new krb_host_keys($this->config,$this); + } + $this->ui = get_userinfo(); $this->modes["active"]= _("Activated"); $this->modes["locked"]= _("Locked"); @@ -231,6 +238,11 @@ class servgeneric extends plugin $smarty->assign("modes", $this->modes); $smarty->assign("currently_installing", $this->currently_installing); + $smarty->assign("host_key",""); + if(is_object($this->kerberos_key_service)){ + $smarty->assign("host_key",$this->kerberos_key_service->execute()); + } + return($smarty->fetch (get_template_path('server.tpl', TRUE))); } @@ -290,6 +302,11 @@ class servgeneric extends plugin $this->base = $base_tmp; } } + + /* Hanle kerberos host key plugin */ + if(is_object($this->kerberos_key_service)){ + $this->kerberos_key_service->save_object(); + } } diff --git a/gosa-plugins/systems/admin/systems/server.tpl b/gosa-plugins/systems/admin/systems/server.tpl index 061074747..38a634a18 100644 --- a/gosa-plugins/systems/admin/systems/server.tpl +++ b/gosa-plugins/systems/admin/systems/server.tpl @@ -34,6 +34,7 @@ + {$host_key} -- 2.30.2