Code

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

gosa-plugins/systems/admin/systems/class_serverService.inc

index 877e21a8ea823d79cf8f7c4d2af9548da6d47c37..e854840a5ead456e6e03476458bd5e472cb7dde1 100644 (file)
@@ -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());
     }