Rescue deleted ldap user (remnants)

nc15
#1

Hi,

I migrated my nextcloud installation to another server. The users were authenticated against an LDAP server on the source machine, and are transferred to another ldap server too.

Now on the target machine all source users appears as “remnants”, probably because they all have a new ldap UUID.

How do I reconcile those “lost” users with their new ldap accounts ? I tried occ files:transfer-ownership but I only get an error message : Unknown path provided:.

Thanks for helping.

Matt

0 Likes

#2

Found the trick. Simply update the oc_ldap_user_mapping table by replacing the values contained in the fields owncloud_name and directory_uuid for the new (current ldap) entries by the old (former ldap) values.

0 Likes