Loading...
 
Skip to main content

Call to undefined method Net_LDAP2_Error::getEntry() when logging in wrongly with LDAP

Status
Closed
Subject
Call to undefined method Net_LDAP2_Error::getEntry() when logging in wrongly with LDAP
Version
6.x
Category
  • Error
Feature
User Administration (Registration, Login & Banning)
Submitted by
Nelson Ko
Lastmod by
Greg Martin
Rating
(0)
Description

When logging in wrongly with LDAP (no such user or wrong password), will get:

Fatal error: Call to undefined method Net_LDAP2_Error::getEntry() in /var/www/html/watwiki/lib/auth/ldap.php on line 257

(or white screen unless Error reporting is turned on for all)

Strangely this only happens if you key in a password 5 characters or longer. A shorter password will just show "Invalid password" or "Invalid username" as the case may be.

Solution

backported 7.x fix to 6.x branch for 6.4.
Truncate log messages to 200 characters prior to posting

http://tikiwiki.svn.sourceforge.net/viewvc/tikiwiki?view=revision&revision=34431Question

Importance
8
Priority
40
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3629
Created
Tuesday 09 November, 2010 23:28:22 UTC
by Nelson Ko
LastModif
Friday 17 June, 2011 15:21:45 UTC


Show PHP error messages