PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Authentication » Auth » Bug #2873

Auth_Container_LDAP: Could not bind to LDAP server. halted script execution

Details

Submitted2004-12-02 12:17 UTC
Fromvijay dot mahrra at es dot easynet dot net
Assignedaashley
StatusClosed
PackageAuth
PHP Version4.3.7
OSFreeBSD 5
Roadmaps(Not assigned)

Comments

[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.

[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.