Loading...
 
Skip to main content

LDAP debugging causes error?

Status
Closed
Subject
LDAP debugging causes error?
Version
6.x
Category
  • Error
Feature
External Authentication (LDAP, AD, PAM, CAS, etc)
Logs (system & action)
Submitted by
ylavi
Lastmod by
Greg Martin
Rating
(0)
Description

System environment:
Tiki 6
Windows Server 2008 64bit
Apache x64 2.2.11
PHP x64 5.2.5 (lib/smarty/libs/internals/core.is_secure.php patched to make it work)

LDAP authentication against AD does work once configured properly
BUT
Debugging the configuration was hard because turning on logging caused errors!
When logging is off, all is well. When logging is on and line 346 of lib/auth/ldap.php is commented out, all is well.
It seems that when logging is active, "$filter->asString()" on that line causes an error on our system. The same call is made on line 262 with a simpler filter and works OK.

Perhaps when checking groups, asString is returning too much for the logging system to handle?

Solution

backported 7.x fix. truncate logs messages to 200 chars before posting

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

Importance
4
Priority
20
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3710
Created
Sunday 12 December, 2010 10:49:44 UTC
by ylavi
LastModif
Friday 17 June, 2011 15:22:27 UTC


Show PHP error messages