Loading...
 
Skip to main content

Problem with ldap_sync_user_and_groups in userslib.php

Status
Closed
Subject
Problem with ldap_sync_user_and_groups in userslib.php
Category
  • Error
Feature
External Authentication (LDAP, AD, PAM, CAS, etc)
Resolution status
Fixed or Solved
Submitted by
crnkyadmin
Lastmod by
Ushindi Gedeon
Rating
(0)
Description
The ldap_sync_user_and_groups function is missing the $user and $pass arguments (types, or whatever you call them). This means that when using LDAP the user will not be added to the LDAP groups and the user's information (name, email, etc) will not be populated. I have a fix listed below, but I don't know if it will break something else.
Solution

I "fixed" this by changing line 847 from:

function ldap_sync_user_and_groups() {

to:

function ldap_sync_user_and_groups($user,$pass) {

Should be fixed in Tiki 5.

Workaround
Importance
7
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3075
Created
Wednesday 10 March, 2010 21:19:33 UTC
by crnkyadmin
LastModif
Monday 01 June, 2026 21:15:03 UTC


Show PHP error messages