lib/ext
Aleksander Machniak
machniak at kolabsys.com
Mon Aug 11 10:00:22 CEST 2014
lib/ext/Net/LDAP3.php | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
New commits:
commit c5de3b83d6e5053e51b7bc43716523f27b03bd77
Author: Aleksander Machniak <alec at alec.pl>
Date: Mon Aug 11 09:59:51 2014 +0200
Don't log password argument of ldapsearch command
diff --git a/lib/ext/Net/LDAP3.php b/lib/ext/Net/LDAP3.php
index e0180bb..34baa2c 100644
--- a/lib/ext/Net/LDAP3.php
+++ b/lib/ext/Net/LDAP3.php
@@ -742,9 +742,14 @@ class Net_LDAP3
'"*"',
);
- $command = implode(' ', $command);
+ // remove password from debug log
+ $command_debug = $command;
+ $command_debug[11] = '*';
- $this->_debug("LDAP: Executing command: $command");
+ $command = implode(' ', $command);
+ $command_debug = implode(' ', $command_debug);
+
+ $this->_debug("LDAP: Executing command: $command_debug");
exec($command, $output, $return_code);
More information about the commits
mailing list