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
- 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.phpCopy to clipboard1174c1179 -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+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- 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 not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 4149
- Created
- Tuesday 31 January, 2012 09:30:13 UTC
by Manuel Schneider - LastModif
- Friday 03 July, 2026 14:36:45 UTC