Closed (fixed)
Project:
LDAP integration
Version:
6.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2012 at 21:40 UTC
Updated:
17 May 2012 at 22:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
cgmonroe commentedThis patch only partially fixes the problem being addressed.
The current code does not pass back the ldap server id in the discovered user data. Instead, when a user is create in the _ldapsync_sync() function, it uses the current _ldapsync_ldap object with only has the last sid as the user's ldap_config property. So this patch will cause users to be created with the wrong ldap_config settings.
To correctly fix this problem, the $user array created in the _ldapsync_search() function should include the SID it was found in. This should be used when the user was created.
Comment #2
antgiant commentedYou're right I hadn't even noticed that. The sid issue combined with the resetting $user variable means that the sync module is pretty much guaranteed to do the wrong thing in a Multi-Server Setup. Changing issue title to reflect that.
Attached two patches. First is same as before and fixes $user bug. Second attempts to fix the $sid bug. At the moment untested but I believe it is correct.
Comment #3
cgmonroe commentedThis was fixed with the changes just committed.
See: #1475272: 6.x-1.0 Release Candidate 1 Status for details.