Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.8

Bug #2646 APOP attempted when not supported
Submitted: 2004-10-29 17:14 UTC
From: osdave at nospam_davepar dot com Assigned: damian
Status: Closed Package: Net_POP3
PHP Version: 4.3.5 OS: linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 31 - 14 = ?

 
 [2004-10-29 17:14 UTC] osdave at nospam_davepar dot com
Description: ------------ My server doesn't report any auth methods in the capabilities, so the POP package attempts to use APOP, which it also doesn't support. S:+OK Hello there. C: CAPA S:+OK Here's what I can do: S:TOP S:USER S:LOGIN-DELAY 10 S:PIPELINING S:UIDL S:IMPLEMENTATION Courier Mail Server S:. POP package tries to use APOP at this point, but the timestamp isn't set. It then returns "Not In NET_POP3_STATE_AUTHORISATION State1" I made a fix for _getBestAuthMethod: if( isset($this->_capability['sasl']) ){ $serverMethods=$this->_capability['sasl']; }else{ $serverMethods=array('USER'); // Check for timestamp before attempting APOP if ($this->_timestamp != null) { $serverMethods[] = 'APOP'; } }

Comments

 [2004-10-29 17:28 UTC] osdave at nospam_davepar dot com
I found another related problem. The logic in _cmdAuthenticate is not falling back to USER correctly when APOP fails. It's checking for a false return code from _cmdApop, but that function now returns a PEAR error when it fails.
 [2004-12-05 16:39 UTC] damian
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/Net_POP3