Commit d9f45f54 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(ldap) Use STARTTLS in LDIF export if needed

When STARTTLS is on it config file it should also be used for LDIF
 export.

issue #5824
Showing with 1 addition and 1 deletion
+1 -1
...@@ -952,7 +952,7 @@ class LDAP ...@@ -952,7 +952,7 @@ class LDAP
$admin = escapeshellarg($this->binddn); $admin = escapeshellarg($this->binddn);
$filter = escapeshellarg($filter); $filter = escapeshellarg($filter);
$cmd = "ldapsearch -x -LLLL -D {$admin} {$filter} {$limit} {$scope} -H {$host} -b {$dn} -w {$pwd} "; $cmd = 'ldapsearch'.($this->tls ? ' -ZZ' : '')." -x -LLLL -D {$admin} {$filter} {$limit} {$scope} -H {$host} -b {$dn} -w {$pwd} ";
// Create list of process pipes // Create list of process pipes
$descriptorspec = array( $descriptorspec = array(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment