# local accounts to LDAP

**URL:** <https://forums.suse.com/t/local-accounts-to-ldap/25894>\
**Category:** SLES Configure-Administer\
**Created:** [July 24, 2014, 8:41pm UTC](https://forums.suse.com/t/local-accounts-to-ldap/25894 "2014-07-24T20:41:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![System1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@System1](https://forums.suse.com/u/System1)\
**Post date:** [July 24, 2014, 8:41pm UTC](https://forums.suse.com/t/local-accounts-to-ldap/25894/1 "2014-07-24T20:41:33Z")

</div>

Hi, we are looking at migrating approx. 75-100 servers to a new VM  
infrastructure. As part of this migration we want to make all  
authentication use LDAP (eDirectory).

Anyone have any good ideas on how we can migrate the existing local  
users with the exisitng UIDs/GIDs and migrate them to eDirectory  
somewhat easily? We need to keep the same UIDs/GIDs due to existing  
applications and file rights.

Thanks

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [July 24, 2014, 10:52pm UTC](https://forums.suse.com/t/local-accounts-to-ldap/25894/2 "2014-07-24T22:52:07Z")

</div>

There is, in this question, the assumption that that the UIDs/GID sare  
unique for all users, meaning that UID of 1234 is only used for one  
identity (person), even if used on multiple systems, and also that person  
A only ever has UID 1234 across all systems.

If that’s the case, getting the list of users from all systems and  
assigning those UIDs to eDirectory objects should be pretty easy, assuming  
the usernames match up between the current servers and the accounts in the  
directory.

If you have mismatches or inconsistencies then there is a bit more work to  
do since a user should only have one UID, and a UID ca only be used by one  
user.

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below…
