Loading...
 
Skip to main content

LDAP group syncing bug solved

Status
Closed
Subject
LDAP group syncing bug solved
Version
14.x
15.x
Category
  • Error
  • Patch
Feature
External Authentication (LDAP, AD, PAM, CAS, etc)
User Administration (Registration, Login & Banning)
Resolution status
Fixed or Solved
Submitted by
taylordustin
Lastmod by
RadoS, Marc Laporte
Rating
(0)
Description

There was an issue with the LDAP not syncing groups properly, and would thus cause a blank page to appear when logging into my site.

Essentially, the entire problem is attributed to a typo in the function name for the ldap_sync_groups function. The file ~/lib/userslib.php contains the function:

Copy to clipboard
private function _ldap_sync_groups($user, $pass) {...}

The major problem is that this function name has a leading underscore (_) and causes an issue when it attempts to sync the groups with the LDAP.

Simply removing the underscore solves the whole problem. The function should be named as such:

Copy to clipboard
private function ldap_sync_groups($user, $pass) {...}

This will make it so that when the file reaches the line:

Copy to clipboard
$ret &= $this->ldap_sync_groups($user, $pass);

It can successfully sync with the LDAP.

Solution
Apply the mentioned correction, albeit I had at least 2 places to change, not just the 1 mentioned here, so further occurrences should be checked.
Importance
10 high
Easy to solve?
10 easy
Priority
99
Demonstrate Bug on Tiki 19+
Please demonstrate your bug on show2.tiki.org
Demonstrate Bug (older Tiki versions)
Ticket ID
5657
Created
Tuesday 28 April, 2015 17:41:29 UTC
by taylordustin
LastModif
Saturday 18 November, 2017 23:45:35 UTC


Collapse/expand modules below
Show PHP error messages