# Migrate from internal auth to LDAP

**URL:** <https://help.nextcloud.com/t/migrate-from-internal-auth-to-ldap/85749>\
**Category:** ℹ️ Support\
**Created:** [June 25, 2020, 5:29pm UTC](https://help.nextcloud.com/t/migrate-from-internal-auth-to-ldap/85749 "2020-06-25T17:29:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![viggy96](https://help.nextcloud.com/user_avatar/help.nextcloud.com/viggy96/32/26540_2.png) [@viggy96](https://help.nextcloud.com/u/viggy96)\
**Post date:** [June 25, 2020, 5:29pm UTC](https://help.nextcloud.com/t/migrate-from-internal-auth-to-ldap/85749/1 "2020-06-25T17:29:11Z")

</div>

I’ve seen this old post regarding how to migrate from internal to LDAP:

> [@Migration to LDAP keeping users and data](https://help.nextcloud.com/t/migration-to-ldap-keeping-users-and-data/13205):
>
> Currently, I’m trying to migrate to LDAP. I’d like to keep the existing users and this seems to be a kind of an issue. By default, nextcloud creates new nextcloud users for all these LDAP users. I’m on nextcloud 12. Starting point I’m running nextcloud 12. I’m using the default setup (more or less). I have a couple of users within nextcloud and they share a couple of files and calendars. The password is stored within nextcloud. Goal I’d like to keep most of the setup, I only want to authenti…

However, I want to know if the guidance regarding this has changed. It appears the main issue is that Nextcloud doesn’t attempt to match users in the LDAP with the existing users in the internal db, instead it always creates a new user. Is there a way to override this behavior? I have done this on other applications before like Jenkins, Jellyfin, where I migrated from internal auth to LDAP, and maintained my account on both.

I’m using Nextcloud on Ubuntu, via Docker. I’m using the nextcloud:production container.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 12, 2024, 7:30am UTC](https://help.nextcloud.com/t/migrate-from-internal-auth-to-ldap/85749/2 "2024-12-12T07:30:43Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 12, 2024, 7:30am UTC](https://help.nextcloud.com/t/migrate-from-internal-auth-to-ldap/85749/3 "2024-12-12T07:30:44Z")

</div>


