Code

Updated command execution
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Dec 2007 07:20:06 +0000 (07:20 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Dec 2007 07:20:06 +0000 (07:20 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7988 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_password-methods-heimdal.inc

index a41b5322b11590ab9fcbea2cbbfcabf50821f918..cd4a317c78fc4f1d8a70a6ba4bb992a4e08ef637 100644 (file)
@@ -168,7 +168,7 @@ class passwordMethodheimdal extends passwordMethod
 
       /* Execute command and check return value */
       $cmd  = $cmd." '".$this->generate_hash($password)."' '".$password."'" ;
-      passthru($cmd,$res);
+      exec($cmd,$out,$res);
       if($res != 0){
         new msg_dialog(_("Heimdal"),sprintf(_("The configured HEIMDAL_KEYGEN '%s' wasn't successfully executed. Command does not return 0."),$cmdd),WARNING_DIALOG);
       }