From ff870b156e044c717a6a68112948d9f0051daa84 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 24 Nov 2010 07:55:36 +0000 Subject: [PATCH] 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 --- gosa-core/include/class_ldap.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.30.2