Code

Fixed gosaSupportDaemon ids_exists
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 28 Apr 2008 09:26:14 +0000 (09:26 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 28 Apr 2008 09:26:14 +0000 (09:26 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10710 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_gosaSupportDaemon.inc
gosa-core/include/password-methods/class_password-methods.inc

index 657d8a0276852697788d1889e1eacae50389de8d..503b8f0cfd3d9745bda6a7ffb1dae3b843f3f907 100644 (file)
@@ -514,7 +514,7 @@ class gosaSupportDaemon
       $entries = $this->xml_to_array($str);
       if(isset($entries['XML']) && is_array($entries['XML'])){
         foreach($entries['XML'] as $entry){
-          if(isset($entry['ID'])){
+          if(is_array($entry) && array_key_exists("ID",$entry)){
             $ret[] = $entry['ID'];
           }
         }
index b2d0ac6fdf288bb59a8b3799ff564885345b9ba4..07b346f0996441b0ba7b71172e905295409e9323 100644 (file)
@@ -131,6 +131,7 @@ class passwordMethod
     foreach ($methods['class'] as $class){
 
         $test = new $class($config);
+        if(!$test->is_available())continue;
         $method= $test->_extract_method($password_hash);
         if ($method != ""){
           $test->set_hash($method);