From: hickert Date: Wed, 24 Nov 2010 07:55:36 +0000 (+0000) Subject: Updated ldap export X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ff870b156e044c717a6a68112948d9f0051daa84;p=gosa.git Updated ldap export -do not pipe the passwort into the command, just set it as parameter. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@20345 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_ldap.inc b/gosa-core/include/class_ldap.inc index 82263242c..2227e664e 100644 --- a/gosa-core/include/class_ldap.inc +++ b/gosa-core/include/class_ldap.inc @@ -899,7 +899,7 @@ class LDAP{ $filter = escapeshellarg($filter); - $cmd = "ldapsearch -x -LLLL -D {$admin} {$filter} {$limit} {$scope} -H {$host} -b {$dn} -W "; + $cmd = "ldapsearch -x -LLLL -D {$admin} {$filter} {$limit} {$scope} -H {$host} -b {$dn} -w {$pwd} "; // Create list of process pipes $descriptorspec = array( @@ -912,7 +912,6 @@ class LDAP{ if (is_resource($process)) { // Write the password to stdin - fwrite($pipes[0], $pwd); fclose($pipes[0]); // Get results from stdout and stderr