Active
Project:
Lightweight Directory Access Protocol
Version:
8.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Aug 2022 at 15:34 UTC
Updated:
6 Oct 2024 at 13:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
qusai taha commentedComment #3
qusai taha commentedComment #4
lars.stiebenz commentedThe Patch in #3304327-3: Fix LDAP Query does not continue all users if the user already exists in the system with the same email address works for the case that a Drupal user without LDAP mapping exists and gets related to an LDAP account with the same mail and name through the cron update.
My problem goes a bit further. I get LDAP accounts with different names but the same mail from the source. Reporting this in the log with the "Another user already exists[...]" message is fine and a reminder for the LDAP manager. But the cron job currently gets interrupted with a PHP error and warning:
I added a check to the GroupUserUpdateProcessor to only proceed with the update for a single account if there is a valid UID.
Comment #5
osamahdev1 commentedIt worked perfectly
Comment #6
bluegeek9 commentedComment #7
bluegeek9 commentedComment #8
hamzadwaya commentedIn my situation, the patch wasn't working effectively when a user logged in and another user had the same email but a different username. I discovered that the patch was checking if the logged-in user had the same username, which always triggered the error message: 'Another user already exists in the system with the same email address. You should contact the system administrator to resolve this conflict.'
To resolve this, I modified the code to remove the username check, tested it, and found that it works fine