From 0cdf07efc25e9e4a2696b1f243406078ea08a051 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 4 Jun 2008 13:36:48 +0000 Subject: [PATCH] Added kerberos service key support to the service plugin. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11215 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/admin/systems/class_serverService.inc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/systems/admin/systems/class_serverService.inc b/gosa-plugins/systems/admin/systems/class_serverService.inc index 877e21a8e..e854840a5 100644 --- a/gosa-plugins/systems/admin/systems/class_serverService.inc +++ b/gosa-plugins/systems/admin/systems/class_serverService.inc @@ -67,6 +67,12 @@ class ServerService extends plugin $this->plugin_names[]= $name; $this->plugins[$name]= new $name($config, $dn, $this); + /* Initialize kerberos key support */ + if(isset($this->plugins[$name]->krb_service_prefix) && !empty($this->plugins[$name]->krb_service_prefix)){ + $this->plugins[$name]->krb_host_key = new krb_host_keys($this->config,$this->parent); + $this->plugins[$name]->krb_host_key->ServiceKey(TRUE); + } + /* Capture all service objectClases, necessary for acl handling */ if(isset($this->plugins[$name]->objectclasses)){ foreach($this->plugins[$name]->objectclasses as $oc){ @@ -253,7 +259,11 @@ class ServerService extends plugin /* There is currently a subdialog open, display this dialog */ if(is_object($this->dialog)){ # $this->dialog->save_object(); - return($this->dialog->execute()); + $add =""; + if(isset($this->dialog->krb_host_key)){ + $add = $this->dialog->krb_host_key->execute(); + } + return($add.$this->dialog->execute()); } -- 2.30.2