From: hickert Date: Fri, 30 May 2008 13:46:52 +0000 (+0000) Subject: Added summy plugin to generate host keys. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fbbd747ec05570b8c2de5e65a94f4ab50d4eaa30;p=gosa.git Added summy plugin to generate host keys. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11126 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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 new file mode 100644 index 000000000..4660d621b --- /dev/null +++ b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_krb_host_keys.inc @@ -0,0 +1,69 @@ +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 new file mode 100644 index 000000000..74541ce88 --- /dev/null +++ b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/krb_host_keys.tpl @@ -0,0 +1,13 @@ +

 

+

{t}Host key{/t}

+ + + + + + +
{t}Realm{/t} + +