From 1c439b3aacac32d29b24fdd06696bb1d7cddbd27 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 4 Jun 2008 14:04:04 +0000 Subject: [PATCH] Updated kerberos recreate = (del && add) git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11219 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/services/kerberos/class_krb_host_keys.inc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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); } -- 2.30.2