cvs: pear /Auth package.xml /Auth/Container POP3.php

From: Date: Tue, 21 Feb 2006 05:26:31 +0000
Subject: cvs: pear /Auth package.xml /Auth/Container POP3.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38428@lists.php.net to get a copy of this message
aashley Tue Feb 21 05:26:31 2006 UTC Modified files: /pear/Auth/Container POP3.php /pear/Auth package.xml Log: Fixed bug #4918. Added support for specifying prefered authentication method when using POP3 backend http://cvs.php.net/viewcvs.cgi/pear/Auth/Container/POP3.php?r1=1.4&r2=1.5&diff_format=u Index: pear/Auth/Container/POP3.php diff -u pear/Auth/Container/POP3.php:1.4 pear/Auth/Container/POP3.php:1.5 --- pear/Auth/Container/POP3.php:1.4 Sun Mar 28 23:19:50 2004 +++ pear/Auth/Container/POP3.php Tue Feb 21 05:26:31 2006 @@ -18,7 +18,7 @@ // | Mika Tuupola <tuupola@appelsiini.net> | // +----------------------------------------------------------------------+ // -// $Id: POP3.php,v 1.4 2004/03/28 23:19:50 yavo Exp $ +// $Id: POP3.php,v 1.5 2006/02/21 05:26:31 aashley Exp $ // @@ -31,7 +31,7 @@ * * @author Yavor Shahpasov <yavo@netsmart.com.cy> * @package Auth - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ */ class Auth_Container_POP3 extends Auth_Container { @@ -47,6 +47,18 @@ */ var $port='110'; + /** + * POP3 Authentication method + * + * Prefered POP3 authentication method. Acceptable values: + * Boolean TRUE - Use Net_POP3's autodetection + * String 'DIGEST-MD5','CRAM-MD5','LOGIN','PLAIN','APOP','USER' + * - Attempt this authentication style first + * then fallback to autodetection. + * @var mixed + */ + var $method=true; + // {{{ Constructor /** @@ -65,6 +77,9 @@ if (isset($server['port'])) { $this->port = $server['port']; } + if (isset($server['method'])) { + $this->method = $server['method']; + } } else { if (strstr($server, ':')) { $serverparts = explode(':', trim($server)); @@ -90,7 +105,7 @@ function fetchData($username, $password) { $pop3 =& new Net_POP3(); - $res = $pop3->connect($this->server, $this->port); + $res = $pop3->connect($this->server, $this->port, $this->method); if (!$res) { return $res; } http://cvs.php.net/viewcvs.cgi/pear/Auth/package.xml?r1=1.69&r2=1.70&diff_format=u Index: pear/Auth/package.xml diff -u pear/Auth/package.xml:1.69 pear/Auth/package.xml:1.70 --- pear/Auth/package.xml:1.69 Tue Feb 21 02:01:51 2006 +++ pear/Auth/package.xml Tue Feb 21 05:26:31 2006 @@ -53,6 +53,8 @@ <state>beta</state> <notes> <![CDATA[ + * Fixed Bug #4918: Added support to specify which authentication method to + prefer when authenticating against a POP3 backend. * Fixed Bug #6644: Added support for LDAP_OPT_REFERRALS. Setting to false can improve compatibility with Active Directory. * Fixed Bug #6791: Made all calls to call_user_func() call_user_func_array and

« previous php.pear.cvs (#38428) next »