cvs: pear /Net_LDAP LDAP.php package2.xml

From: Date: Thu, 23 Apr 2009 06:22:45 +0000
Subject: cvs: pear /Net_LDAP LDAP.php package2.xml
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-55972@lists.php.net to get a copy of this message
beni Thu Apr 23 06:22:45 2009 UTC Modified files: /pear/Net_LDAP LDAP.php package2.xml Log: * Prepared release 1.1.4 http://cvs.php.net/viewvc.cgi/pear/Net_LDAP/LDAP.php?r1=1.93&r2=1.94&diff_format=u Index: pear/Net_LDAP/LDAP.php diff -u pear/Net_LDAP/LDAP.php:1.93 pear/Net_LDAP/LDAP.php:1.94 --- pear/Net_LDAP/LDAP.php:1.93 Mon Nov 3 14:06:27 2008 +++ pear/Net_LDAP/LDAP.php Thu Apr 23 06:22:45 2009 @@ -13,7 +13,7 @@ * @author Benedikt Hallinger <beni@php.net> * @copyright 2003-2007 Tarjej Huse, Jan Wagner, Del Elson, Benedikt Hallinger * @license http://www.gnu.org/copyleft/lesser.html LGPL -* @version CVS: $Id: LDAP.php,v 1.93 2008/11/03 14:06:27 beni Exp $ +* @version CVS: $Id: LDAP.php,v 1.94 2009/04/23 06:22:45 beni Exp $ * @link http://pear.php.net/package/Net_LDAP/ */ @@ -37,7 +37,7 @@ /** * Net_LDAP Version */ -define('NET_LDAP_VERSION', '1.1.3'); +define('NET_LDAP_VERSION', '1.1.4'); /** * Net_LDAP - manipulate LDAP servers the right way! @@ -347,18 +347,16 @@ // // - // Default error message in case all connection attempts fail but - // no message is set + // Default error message in case all connection attempts fail but no message is set // - $current_error =& new PEAR_Error('Unknown connection error'); + $current_error = new PEAR_Error('Unknown connection error'); // // Catch empty $_host_list arrays. // if (!is_array($this->_host_list) || count($this->_host_list) == 0) { - $msg = 'No Servers configured! Please pass in an array of servers to Net_LDAP'; - - return PEAR::raiseError($msg); + $current_error = PEAR::raiseError('No Servers configured! Please pass in an array of servers to Net_LDAP2'); + return $current_error; } // @@ -370,11 +368,7 @@ // Ensure we have a valid string for host name // if (is_array($host)) { - $msg = 'No Servers configured! Please pass in an one dimensional'; - $msg .= ' array of servers to Net_LDAP!'; - $msg .= ' (multidimensional array detected!)'; - - $current_error = PEAR::raiseError($msg); + $current_error = PEAR::raiseError('No Servers configured! Please pass in an one dimensional array of servers to Net_LDAP2! (multidimensional array detected!)'); continue; } @@ -398,13 +392,14 @@ if (false === $this->_link) { $current_error = PEAR::raiseError('Could not connect to ' . $host . ':' . $this->_config['port']); + $this->_down_host_list[] = $host; continue; } // // Set LDAP version before trying to bind. // - if (Net_LDAP::isError($msg = $this->setLDAPVersion())) { + if (self::isError($msg = $this->setLDAPVersion())) { $current_error = $msg; $this->_link = false; $this->_down_host_list[] = $host; @@ -412,10 +407,10 @@ } // - // Set LDAP parameters, now we know we have a valid connection. + // If we're supposed to use TLS, do so before we try to bind. // if ($this->_config["starttls"] === true) { - if (Net_LDAP::isError($msg = $this->startTLS())) { + if (self::isError($msg = $this->startTLS())) { $current_error = $msg; $this->_link = false; $this->_down_host_list[] = $host; @@ -425,10 +420,10 @@ // // Attempt to bind to the server. If we have credentials configured, - // we try to use them, otherwiese its an anonymous bind. + // we try to use them, otherwise its an anonymous bind. // $msg = $this->bind(); - if (Net_LDAP::isError($msg)) { + if (self::isError($msg)) { // The bind failed, discard link and save error msg. // Then record the host as down and try next one $this->_link = false; @@ -437,12 +432,15 @@ continue; } + // + // Set LDAP parameters, now we know we have a valid connection. + // if (isset($this->_config['options']) && is_array($this->_config['options']) && count($this->_config['options'])) { foreach ($this->_config['options'] as $opt => $val) { $err = $this->setOption($opt, $val); - if (Net_LDAP::isError($err)) { + if (self::isError($err)) { $current_error = $err; $this->_link = false; $this->_down_host_list[] = $host; http://cvs.php.net/viewvc.cgi/pear/Net_LDAP/package2.xml?r1=1.68&r2=1.69&diff_format=u Index: pear/Net_LDAP/package2.xml diff -u pear/Net_LDAP/package2.xml:1.68 pear/Net_LDAP/package2.xml:1.69 --- pear/Net_LDAP/package2.xml:1.68 Mon Nov 3 14:06:27 2008 +++ pear/Net_LDAP/package2.xml Thu Apr 23 06:22:45 2009 @@ -37,9 +37,9 @@ </lead> <!-- Information for this release --> - <date>2008-10-23</date> + <date>2009-04-23</date> <version> - <release>1.1.3</release> + <release>1.1.4</release> <api>1.1.2</api> </version> <stability> @@ -48,8 +48,7 @@ </stability> <license>LGPL License</license> <notes> - * Fixed a little issue with repetive adding the same attribute value (backported from Net_LDAP2) - * Fixed issue with repetitve adding or deleting values causing Net_LDAP to send the same change multiple times + * Ported the connect() method from Net_LDAP2 since it fixes some connection issues </notes> <contents> @@ -507,5 +506,21 @@ * Bugfix in filter class for approx matching </notes> </release> + <release> + <date>2008-10-23</date> + <version> + <release>1.1.3</release> + <api>1.1.2</api> + </version> + <stability> + <release>stable</release> + <api>stable</api> + </stability> + <license>LGPL License</license> + <notes> + * Fixed a little issue with repetive adding the same attribute value (backported from Net_LDAP2) + * Fixed issue with repetitve adding or deleting values causing Net_LDAP to send the same change multiple times + </notes> + </release> </changelog> </package>

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