Code

Updated get principal function
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Apr 2008 13:45:06 +0000 (13:45 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Apr 2008 13:45:06 +0000 (13:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10675 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_gosaSupportDaemon.inc

index e4772236c32bf787a90ecef02f241493a4e3ce7e..657d8a0276852697788d1889e1eacae50389de8d 100644 (file)
@@ -1233,7 +1233,12 @@ class gosaSupportDaemon
       "<target>".$server."</target>".
       "</xml>";
     
-    return($this->_send($xml_msg,TRUE));
+    $tmp = $this->_send($xml_msg,TRUE);
+    if(isset($tmp['XML']['PRINCIPAL'])){
+      return($tmp['XML']['PRINCIPAL']);
+    }else{
+      return($res);
+    }
   }