Hello,
We just encountered an issue with AD synchronization that seems very likely to be bug (we are currently running 10.3.0.110).
We discovered that our AD synchronization has been failing for several days now and the error reported on the server was a unique key violation.
Because LFDS uses sAMAccountName for the unique identifier, this what I believe happened.
- One of our users was disabled and removed from the system and their account had not yet been removed from LFDS (automated cleanup options would help here)
- The user returned and was issued a new account with the same username (i.e., same sAMAccountName) but with a new SID (I think this is what caused the problem)
- Instead of overwriting the user entry because the unique value matched, LFDS saw this as a different account and the entire synchronization failed because it tried to enter a duplicate value into a unique column of the database.
From my point of view, if sAMAccountName is the unique name attribute, then it should treat anything with that unique identifier as an update to the existing entry, even if it has a new SID, otherwise it should use SID as the unique identifier.
In our environment is pretty common for employees to come back after leaving the organization, so without automated cleanup options for LFDS, it is inevitable that a new SID will be associated with a previously registered sAMAccountName.
Because LFDS does not report these kinds of errors, it went undetected for several days until we realized a user whose name changed was now showing the correct username in Forms.
The error we've been getting is below.
Is this by any chance fixed in a newer update?