PEAR is archived and read-only

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

Home » Authentication » Auth » Bug #10004

Debug messages in LDAP container are unhelpful

Details

Submitted2007-02-01 12:10 UTC
Fromalexiadeath at hotmail dot com
Assignedaashley
StatusClosed
PackageAuth
PHP Version5.1.4
OSDebian
Roadmaps(Not assigned)

Comments

[2007-02-01 12:10 UTC] alexiadeath at hotmail dot com

Description:
------------
283: Connecting with host:port
290: Successfully connected to server
294: Switching to LDAP version 3
308: Switching LDAP referrals to false
314: Binding with credentials
0: LDAP_Error: Success
0: disconnecting from server

This is ALL the debuging information you get for ANY bind error ranging from the fact server IP is incorrect to the fact that bind password is incorrect. I belive debug should at least give you back the LDAP error code/message... Its particulary nasty if theres a problem with the host address
because this seems to indicate that connecting to host worked... And what kind of a error is Success?

[2007-02-02 02:16 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.

I've added logging of the ldap error messages to the LDAP container but I have no idea where that second last error message came from.

The debug output I got is:
AUTH: Auth_Container_LDAP::_connect() called.
AUTH: Connecting with host:port
AUTH: Successfully connected to server
AUTH: Switching to LDAP version 3
AUTH: Switching LDAP referrals to true
AUTH: Binding with credentials
AUTH: Bind failed
AUTH: LDAP ERROR: 81: Can't contact LDAP server
AUTH: Auth_Container_LDAP::_disconnect() called.
AUTH: disconnecting from server

the LDAP ERROR line is a newly added one.