docs/migration_guides/v0.5.md
Welcome! If you're here, it's probably that the migration from 0.4.x to 0.5 didn't go smoothly for you. Don't worry, we can fix that.
This is the most common case. You can see in the LLDAP logs that there are several users with the same email, and they are listed.
This is not allowed anymore in v0.5, to prevent a user from setting their email to someone else's email and gaining access to systems that identify by email.
The problem is that you currently have several users with the same email, so the constraint cannot be enforced.
In the LLDAP logs when you tried to start v0.5+, you'll see some warnings with the list of users with the same emails. Take note of them.
If using docker, switch to the lldap/lldap:v0.4.3 image. Alternatively, grab
the binaries at https://github.com/lldap/lldap/releases/tag/v0.4.3.
This downgrade is safe and supported.
Restart LLDAP with the v0.4.3 version, and using your notes from step 1, change the email of users with duplicate emails to make sure that each email is unique.
You can now revert to the initial version.
This should be extremely rare. In this case, you'll need to find which users have the same UUID, revert to v0.4.3 to be able to apply the changes, and delete one of the duplicates.
You can use plus codes to set "the same" email to several users, while ensuring that they can't identify as each other. For instance:
[email protected][email protected][email protected]This guide is still relevant: you can use whatever later version in place of v0.5. You'll still need to revert to v0.4.3 to apply the changes.