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

From: Date: Tue, 21 Feb 2006 05:50:21 +0000
Subject: cvs: pear /Auth package.xml /Auth/Container LDAP.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38430@lists.php.net to get a copy of this message
aashley Tue Feb 21 05:50:21 2006 UTC Modified files: /pear/Auth package.xml /pear/Auth/Container LDAP.php Log: Fix #2873. Allow calling program to gracefully handle being unable to connect/bind to ldap server instead of just dieing with fatal errors http://cvs.php.net/viewcvs.cgi/pear/Auth/package.xml?r1=1.70&r2=1.71&diff_format=u Index: pear/Auth/package.xml diff -u pear/Auth/package.xml:1.70 pear/Auth/package.xml:1.71 --- pear/Auth/package.xml:1.70 Tue Feb 21 05:26:31 2006 +++ pear/Auth/package.xml Tue Feb 21 05:50:21 2006 @@ -53,6 +53,8 @@ <state>beta</state> <notes> <![CDATA[ + * Fixed Bug #2873: Allow calling programs to gracefully handle being unable + to connect/bind to LDAP server. * 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 http://cvs.php.net/viewcvs.cgi/pear/Auth/Container/LDAP.php?r1=1.24&r2=1.25&diff_format=u Index: pear/Auth/Container/LDAP.php diff -u pear/Auth/Container/LDAP.php:1.24 pear/Auth/Container/LDAP.php:1.25 --- pear/Auth/Container/LDAP.php:1.24 Tue Feb 21 02:01:51 2006 +++ pear/Auth/Container/LDAP.php Tue Feb 21 05:50:21 2006 @@ -16,7 +16,7 @@ // | Authors: Jan Wagner <wagner@netsols.de> | // +----------------------------------------------------------------------+ // -// $Id: LDAP.php,v 1.24 2006/02/21 02:01:51 aashley Exp $ +// $Id: LDAP.php,v 1.25 2006/02/21 05:50:21 aashley Exp $ // require_once "Auth/Container.php"; @@ -169,7 +169,7 @@ * * @author Jan Wagner <wagner@netsols.de> * @package Auth - * @version $Revision: 1.24 $ + * @version $Revision: 1.25 $ */ class Auth_Container_LDAP extends Auth_Container @@ -226,7 +226,7 @@ } if (($this->conn_id = @call_user_func_array('ldap_connect', $conn_params)) === false) { - return PEAR::raiseError('Auth_Container_LDAP: Could not connect to server.', 41, PEAR_ERROR_DIE); + return PEAR::raiseError('Auth_Container_LDAP: Could not connect to server.', 41); } $this->_debug('Successfully connected to server', __LINE__); @@ -255,7 +255,7 @@ if ((@call_user_func_array('ldap_bind', $bind_params)) == false) { $this->_debug(); $this->_disconnect(); - return PEAR::raiseError("Auth_Container_LDAP: Could not bind to LDAP server.", 41, PEAR_ERROR_DIE); + return PEAR::raiseError("Auth_Container_LDAP: Could not bind to LDAP server.", 41); } $this->_debug('Binding was successful', __LINE__); }

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