summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-08-11 07:59:51 (GMT)
committerAleksander Machniak <alec@alec.pl>2014-08-11 07:59:51 (GMT)
commitc5de3b83d6e5053e51b7bc43716523f27b03bd77 (patch)
tree3cbc3e5af7913fdb33f8afba8f0388c980d9f9e2
parent44ee1712b61ba9c23cae19b99140d25666cb28ce (diff)
downloadkolab-wap-c5de3b83d6e5053e51b7bc43716523f27b03bd77.tar.gz
Don't log password argument of ldapsearch command
-rw-r--r--lib/ext/Net/LDAP3.php9
1 files changed, 7 insertions, 2 deletions
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);