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
- 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+
-
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
- 3075
- Created
- Wednesday 10 March, 2010 21:19:33 UTC
by crnkyadmin - LastModif
- Monday 01 June, 2026 21:15:03 UTC