From: hickert Date: Wed, 4 Jun 2008 13:55:30 +0000 (+0000) Subject: Updated host key generation to be more flexible, it can create service keys now too. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d33f497567229caa86e78f3fa7927a38b130b824;p=gosa.git Updated host key generation to be more flexible, it can create service keys now too. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11218 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 index 85cef55f1..4f5eaaa47 100644 --- 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 @@ -37,15 +37,18 @@ class krb_host_keys extends plugin private $namingAttr = ""; private $is_service_key = FALSE; - public function __construct($config,$object) + private $prefix = "host/"; + + public function __construct($config,$object,$prefix = "host/") { plugin::plugin($config, NULL); $this->object = $object; + $this->prefix = $prefix; $this->o_queue = new gosaSupportDaemon(); /* Create principal name, to detect whether there is a valid host key or not */ - $this->init_namingAttr = $this->namingAttr = "host/".$this->object->cn; + $this->init_namingAttr = $this->namingAttr = $this->prefix.$this->object->cn; $this->init(); } @@ -57,7 +60,7 @@ class krb_host_keys extends plugin $this->kerberos_support = FALSE; if(class_available("passwordMethodMIT")){ - $this->namingAttr = "host/".$this->object->cn; + $this->namingAttr = $this->prefix.$this->object->cn; /* Create password handle, it has already a working principal parsing */ @@ -111,6 +114,8 @@ class krb_host_keys extends plugin { /* Skip if there is no kerberos support available */ + echo $this->namingAttr."
"; + if(!$this->kerberos_support) return(""); $smarty = get_smarty(); $smarty->assign("server_list",$this->server_list);