From: hickert Date: Thu, 3 Jul 2008 07:12:25 +0000 (+0000) Subject: Updated krb_host_key class. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f0f6e777b28718b15a7ede60b4d255cb5847e436;p=gosa.git Updated krb_host_key class. - Do not display key settings, if we couldn't establish a connection to the si server. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11518 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 46c8150f5..f2cd36b7d 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 @@ -109,6 +109,12 @@ class krb_host_keys extends plugin /* Create password handle, it has already a working principal parsing */ $this->pwd_handle = new passwordMethodMIT($this->config); + + /* Check class initialation */ + if(!($this->pwd_handle instanceOf passwordMethodMIT)){ + trigger_error("Could not initialize kerberos password method 'passwordMethodMIT'."); + return; + } $this->pwd_handle->clear_cache(); /* Get a list of all kerberos servers, defined in ldap @@ -143,7 +149,7 @@ class krb_host_keys extends plugin } } - if(isset($this->server_list) && count($this->server_list)){ + if(isset($this->server_list) && count($this->server_list) && $this->o_queue->is_connected()){ $this->kerberos_support = TRUE; } }