How to migrate Local NC users to LDAP

Hi

We have deployed ldap and integrate it with NC 24.

Now question is how to migrate local users authentication to LDAP keeping existing users data, chat, other records etc. Means transparent migration for end user?

We have plan to use LDAP as single-sign-on with other applications too.

Please advice.

Hello,

This is not officially possible.

Potential work around include:

  • Creating new user on LDAP and then use transfer-ownership to move the files to these new users, if the only user data you have is files.
  • Using user_migration application to export the local users, create new LDAP users, import into them. Might be slow depending on the amount of data, will not work for every kind of data, only what the application currently supports.
  • Tinkering with the database to tie the local accounts to the LDAP ones, but this is uncharted territory and needs deep understanding of Nextcloud database tables.