We have renamed a user because of marriage. Now when she logs in to seafile with her new email address, she is treated as new user. She cannot access her previous libraries and does not have access to content shared to her old mail address.
Is there any way to change the mail address of an existing ldap user?
Or is there any way to move everything from the old to the newly created ldap user?
within the admin web interface, you can transfer the librairies from the old email account towards the new email account. It is quick and simple but the user will loose its shares with the others.
Renaming accounts is not a trivial work as the email appears in many SQL tables.
Seafile staff can help you if you have many accounts to rename.
If you use LDAP, the recommend way is to use userPrincipalName to identify a user. The userPrincipalName will not change when you change a user’s email. It is documented in LDAP/AD Integration - Seafile Admin Manual
You are wrong about this. If the UPN is using the last name, it will change if the person marries or is divorced. You can also set the UPN to match the e-mail-address or include the first name in the UPN. There are many reasons for changing the users name. Just think about transgender people in the company. The only thing that never changes in Active Directory (as long as you don’t delete and recreate the account) is the SID!