Code

Updated kerberos recreate = (del && add)
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 4 Jun 2008 14:04:04 +0000 (14:04 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 4 Jun 2008 14:04:04 +0000 (14:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11219 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_krb_host_keys.inc

index 4f5eaaa4709d8bfa6548411b03e9c5e342fa538f..737ec6d6939ceeb5e2045135afd83014650b77c4 100644 (file)
@@ -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);
   }