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

Bug #2873 Auth_Container_LDAP: Could not bind to LDAP server. halted script execution
Submitted: 2004-12-02 12:17 UTC
From: vijay dot mahrra at es dot easynet dot net Assigned: aashley
Status: Closed Package: Auth
PHP Version: 4.3.7 OS: FreeBSD 5
Roadmaps: (Not assigned)    
Subscription  


 [2004-12-02 12:17 UTC] vijay dot mahrra at es dot easynet dot net
Description: ------------ I have isolated an error in: LDAP.php,v 1.17 2004/06/14 09:25:40 jw Exp $ which caused a blank page and error message to appear, preventing my calling program from handling the error. The error displayed was: Auth_Container_LDAP: Could not bind to LDAP server. and was a result of invalid login credentials (correct login credentials didn't return an error) Reproduce code: --------------- I changed line 232 in function _connect() which read: return PEAR::raiseError("Auth_Container_LDAP: Could not bind to LDAP server.", 41, PEAR_ERROR_DIE); to return PEAR::raiseError("Auth_Container_LDAP: Could not bind to LDAP server.", 41); which enabled my calling program to handle the error gracefully., Expected result: ---------------- PEAR_Error Object returned. Actual result: -------------- Error message "Auth_Container_LDAP: Could not bind to LDAP server." and calling script execution halted.

Comments

 [2006-02-21 05:50 UTC] aashley at php dot net
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.