From 5224feef4dc921598d209b6c55477c60e9b2f68c Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 17 Mar 2009 13:28:02 -0600 Subject: [PATCH] Add username to login/authenticate debug log --- framework/Imap_Client/lib/Horde/Imap/Client/Socket.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.11.0