diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-08-11 08:01:08 (GMT) |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-08-11 08:01:08 (GMT) |
commit | a3b96ac6df78d74fe95394e8b33da5aab784d52e (patch) | |
tree | 91ff943c12f4bb09c92bcbca497cbc6c9e7ffac2 | |
parent | 83c210942cce29b25e1ea5cf0e19174924c9f5e0 (diff) | |
download | Net_LDAP3-a3b96ac6df78d74fe95394e8b33da5aab784d52e.tar.gz |
Don't log password argument of ldapsearch command
-rw-r--r-- | lib/Net/LDAP3.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/Net/LDAP3.php b/lib/Net/LDAP3.php index 3202f5a..4d2082a 100644 --- a/lib/Net/LDAP3.php +++ b/lib/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); |