summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 06171cb)
raw | patch | inline | side by side (parent: 06171cb)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 30 May 2008 13:46:52 +0000 (13:46 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 30 May 2008 13:46:52 +0000 (13:46 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11126 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_krb_host_keys.inc | [new file with mode: 0644] | patch | blob |
gosa-plugins/mit-krb5/admin/systems/services/kerberos/krb_host_keys.tpl | [new file with mode: 0644] | patch | blob |
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
--- /dev/null
@@ -0,0 +1,69 @@
+<?php
+
+class krb_host_keys extends plugin
+{
+
+ public $config;
+ private $object;
+ private $o_queue;
+ private $host_key_realm = "disabled";
+ private $host_key_realms = array();
+ private $kerberos_support= FALSE;
+
+ public function __construct($config,$object)
+ {
+ plugin::plugin($config, NULL);
+ $this->object = $object;
+ $this->o_queue = new gosaSupportDaemon();
+ $this->host_key_realms['disabled'] = _("Disabled");
+
+ /* Collect other realms here later */
+ $this->kerberos_support = TRUE;
+ }
+
+ public function execute()
+ {
+ /* Skip if there is no kerberos support available
+ */
+ if(!$this->kerberos_support) return("");
+
+ $smarty = get_smarty();
+ $smarty->assign("host_key_realms",$this->host_key_realms);
+ $smarty->assign("host_key_realm",$this->host_key_realm);
+ return($smarty->fetch (get_template_path('krb_host_keys.tpl', TRUE,dirname(__FILE__))));
+ }
+
+
+ private function generate_key()
+ {
+ echo "NIY";
+ }
+
+
+ public function save_object()
+ {
+ /* Skip if there is no kerberos support available
+ */
+ if(!$this->kerberos_support) return;
+
+ if(isset($_POST['host_key_realm']) && isset($this->host_key_realms[$_POST['host_key_realm']])){
+ $this->host_key_realm = get_post('host_key_realm');
+ }
+ if(isset($_POST['host_key_generate'])){
+ $this->generate_key();
+ }
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
+?>
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
--- /dev/null
@@ -0,0 +1,13 @@
+<p class="seperator"> </p>
+<h2><img class="center" alt="" src="images/lists/locked.png" align="middle"> {t}Host key{/t}</h2>
+<table>
+ <tr>
+ <td>{t}Realm{/t}</td>
+ <td>
+ <select name="host_key_realm" title="{t}Select a realm{/t}">
+ {html_options options=$host_key_realms selected=$host_key_realm}
+ </select>
+ </td>
+ <td><input type='submit' name="host_key_generate" value="{t}Generate{/t}"></td>
+ </tr>
+</table>