Code

Added kerberos host key generation support
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 30 May 2008 13:46:03 +0000 (13:46 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 30 May 2008 13:46:03 +0000 (13:46 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11124 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/systems/admin/systems/class_servGeneric.inc
gosa-plugins/systems/admin/systems/server.tpl

index 2886b19b1a244e2a3293d41ef39370f6de489561..56e7512a06a319945ea0c66b1bdb8103a479ab63 100644 (file)
@@ -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();
+    }
   }
 
 
index 061074747a0626b69e979cd61e8cf4faaa9549ab..38a634a18ad9783cb6a40162c0d2c597bed4de29 100644 (file)
@@ -34,6 +34,7 @@
           </td>
          </tr>
        </table>
+       {$host_key}
   </td>
   <td  style="vertical-align:top;border-left:1px solid #A0A0A0;">
        <table summary="">