Loading...
 
Skip to main content

LDAP Group Sync in Tiki-9 Broken

Status
Closed
Subject
LDAP Group Sync in Tiki-9 Broken
Version
9.x
Category
  • Error
Feature
External Authentication (LDAP, AD, PAM, CAS, etc)
Group
Resolution status
New
Submitted by
jcarter
Lastmod by
jcarter
Rating
(0)
Description

I was unable to get group sync for ldap working, and after changing two lines of code in userslib.php I was able to get it working.

The changes I made are the procedure section, and I have included my settings also in case someone is having a similar issue, or is just trying to set up LDAP group sync and would like to see a working example, and in case it is useful in your troubleshooting.

Solution

Procedure

in tiki-9/lib/userslib.php, change line 1222 from

to

and changed line 1257 from

to


I then poked around in the code to see how the sync actually occurred, and which settings should be filled, and set the settings as follow:


LDAP External Groups Tab
LDAP Bind settings
<will vary>

LDAP User
User DN: OU=People <wherever you want to look for people, this should be an ou>
User Attribute: sAMAccountName
Corresponding user attribute in 1st directory: sAMAccountName
User OC: user

LDAP Group
Group DN: <group DN>

Group name attribute: cn
Group description attribute: description
Group OC: group

LDAP Group Member - if group membership can be found in group attributes
Member attribute: member
Member is DN: T

LDAP User Group - if group membership can be found in user attributes
Group attribute:
Group attribute in group entry:

LDAP Admin
Admin user: <user>

Admin password: <pw>


General Preferences Tab
Synchronize Tiki groups with a directory: T

Importance
9
Easy to solve?
10 easy
Priority
90
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4284
Created
Monday 27 August, 2012 16:43:21 UTC
by jcarter
LastModif
Monday 09 December, 2013 21:32:59 UTC


Show PHP error messages