Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I currently have two LDAP servers--one at an office and another at a data center. I would like to move the office accounts to the data center to centralize account management. What's the best method to migrate the accounts? Also, how do I avoid conflicting uid and gid numbers?
generally you'd just dump the data with an ldapsearch -LLL and then reimport it again with an ldapadd. As for the uid's, for a one off, i'd personally manually check before doing it, but outside of that, you can just do an ldapadd and manually change any uid's that fail, it's a pretty verbose format, and assuming that uid is indexed uniquely on the destination, it will reject those records. Note that you'e said nothing at all about what ldap services you're using, so the advice we can provide is limited.
Both servers are running Webmin so the underlying configuration may not be that standardized. I was reading the documentation on the RedHat website (the servers are running CentOS), which demonstrated how to use db2ldif, but I don't have that utility installed.
After several inelegant attempts at importing the accounts, the users are now on the destination server. However, the dn is wrong, causing them not to appear in the database. For example, "dc=hostname,dc=subdomain,dc=domain,dc=com" instead of "dc=subdomain,dc=domain,dc=com." All I need to do is remove the "dc=hostname" part and that should fix it. I wrote a file with the following contents:
Nothing changed in the user list in Webmin. I tried to delete the user but Webmin times out, waiting (it tried to delete it from other modules, even though I didn't select that). What's the best way to modify the dn for these users?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.