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
- 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 clipboardprivate 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 clipboardprivate 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+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is currently unavailableUnable to connect to show.tikiwiki.org. Please let us know of the problem so that we can do something about it. Thanks.
- Ticket ID
- 5657
- Created
- Tuesday 28 April, 2015 17:41:29 UTC
by taylordustin - LastModif
- Saturday 18 November, 2017 23:45:35 UTC