Code

Updated error handling for krb class
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 30 Apr 2008 12:09:11 +0000 (12:09 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 30 Apr 2008 12:09:11 +0000 (12:09 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10744 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc

index dda6b4b4544e8a0f3b849ee25dff9a8ee1cdc6c2..d46e4e3b1fdb2569d83b21f5df33dc8436267b13 100644 (file)
@@ -287,7 +287,6 @@ class passwordMethodMIT extends passwordMethod
    */ 
   function is_available()
   {
-    return(TRUE);
     $o = new gosaSupportDaemon(FALSE);
     if(count($this->server_list) && $o->connect()){
       return TRUE; 
@@ -452,6 +451,10 @@ class passwordMethodMIT extends passwordMethod
        Here we hanlde those requests.
      */
     if(isset($_POST['retry_si'])){
+      $this->si_error= FALSE;
+      $this->si_error_msg= "";
+      session::un_set("MIT_PRINCIPAL_CACHE");
+      session::un_set("MIT_POLICY_CACHE");
       $this->__construct($this->config,$this->parent_dn);
     }