From: Michael M Slusarz Date: Tue, 17 Mar 2009 19:28:02 +0000 (-0600) Subject: Add username to login/authenticate debug log X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5224feef4dc921598d209b6c55477c60e9b2f68c;p=horde.git Add username to login/authenticate debug log --- diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php index d78f0bdf2..40b1ccafe 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php @@ -519,7 +519,7 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base break; case 'LOGIN': - $this->_sendLine('LOGIN ' . $this->_utils->escape($this->_params['username']) . ' ' . $this->_utils->escape($this->_params['password']), array('debug' => '[LOGIN Command]')); + $this->_sendLine('LOGIN ' . $this->_utils->escape($this->_params['username']) . ' ' . $this->_utils->escape($this->_params['password']), array('debug' => sprintf('[LOGIN Command - username: %s]', $this->_params['username']))); break; case 'PLAIN': @@ -527,10 +527,10 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base $auth = base64_encode(implode("\0", array($this->_params['username'], $this->_params['username'], $this->_params['password']))); if ($this->queryCapability('SASL-IR')) { // IMAP Extension for SASL Initial Client Response (RFC 4959) - $this->_sendLine('AUTHENTICATE PLAIN ' . $auth, array('debug' => '[SASL-IR AUTHENTICATE Command]')); + $this->_sendLine('AUTHENTICATE PLAIN ' . $auth, array('debug' => sprintf('[SASL-IR AUTHENTICATE Command - username: %s]', $this->_params['username']))); } else { $this->_sendLine('AUTHENTICATE PLAIN', array('noparse' => true)); - $this->_sendLine($auth, array('debug' => '[AUTHENTICATE Command]', 'notag' => true)); + $this->_sendLine($auth, array('debug' => sprintf('[AUTHENTICATE Command - username: %s]', $this->_params['username']), 'notag' => true)); } break; }