Fullscreen
Loading...
 
Skip to main content

Fix dependency of LDAP group sync to external directory

Status
Closed
Subject
Fix dependency of LDAP group sync to external directory
Version
8.x
Category
  • Regression
  • Less than 30-minutes fix
  • Patch
Feature
External Authentication (LDAP, AD, PAM, CAS, etc)
User Administration (Registration, Login & Banning)
Resolution status
Fixed or Solved
Submitted by
Manuel Schneider
Lastmod by
Ushindi Gedeon
Rating
(0)
Description

LDAP group synchronisation is dependent on the "corresponding user attribute", a setting which is only needed if an external directory is used for group synchronisation.

The fix is simple - the combination of if-staments just need to be adjusted slightly - see patch.

Solution
lib/userslib.php
Copy to clipboard
1174c1179 -if ($prefs['syncGroupsWithDirectory'] == 'y' && $userattributes[$prefs['auth_ldap_group_corr_userattr']] != null) { - // sync external group information of user - $ldapgroups = array(); - - if ($prefs['auth_ldap_group_external'] == 'y') { +if ($prefs['syncGroupsWithDirectory'] == 'y') { + // sync external group information of user + $ldapgroups = array(); + + if ($prefs['auth_ldap_group_external'] == 'y' && $userattributes[$prefs['auth_ldap_group_corr_userattr']] != null) {
Workaround
Importance
8
Priority
40
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4149
Created
Tuesday 31 January, 2012 09:30:13 UTC
by Manuel Schneider
LastModif
Friday 03 July, 2026 14:36:45 UTC


Show PHP error messages