From: hickert Date: Wed, 4 Jun 2008 14:04:04 +0000 (+0000) Subject: Updated kerberos recreate = (del && add) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1c439b3aacac32d29b24fdd06696bb1d7cddbd27;p=gosa.git Updated kerberos recreate = (del && add) git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11219 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 4f5eaaa47..737ec6d69 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 @@ -129,17 +129,16 @@ class krb_host_keys extends plugin $this->o_queue->krb5_add_principal($id,$name,array()); if($this->o_queue->is_error()){ msg_dialog::display(_("Service infrastructure"),msgPool::siError($this->o_queue->get_error()),ERROR_DIALOG); - }else{ - $this->recreate_key($id,$name); + return(FALSE); } + return(TRUE); } public function recreate_key($id,$name) { - $this->o_queue->krb5_ramdomize_key($id, $name); - if($this->o_queue->is_error()){ - msg_dialog::display(_("Service infrastructure"),msgPool::siError($this->o_queue->get_error()),ERROR_DIALOG); + if($this->delete_key($id,$name)){ + $this->create_key($id,$name); } } @@ -149,7 +148,9 @@ class krb_host_keys extends plugin $this->o_queue->krb5_del_principal($id, $name); if($this->o_queue->is_error()){ msg_dialog::display(_("Service infrastructure"),msgPool::siError($this->o_queue->get_error()),ERROR_DIALOG); + return(FALSE); } + return(TRUE); }