0

I've got two webservers which takes part in a load balanced setup. The two webservers are in other words mirrors of each other.

As it is right now I'm synchronizing data between these two servers using lsyncd + csync2. Directories and files, along with ownership and permissions, are thus replicated between the two servers upon create, update and delete.

However, when I add a user to one of the servers I need to manually add that users with the same UID (and GUI) on the other server.

What is the easiest way to make sure that when I add a new user on server A, that user is also created on user B with the same UID + GID? Do I really need to set up LDAP and do all the work related to that; or is there an easier way to achieve this?

sbrattla
  • 1,578
  • 4
  • 28
  • 52

1 Answers1

2

LDAP is the easiest way to do so. Accounts that should be the same on both systems will be added to the LDAP server, and per-server accounts should be created locally instead.

Ignacio Vazquez-Abrams
  • 45,939
  • 6
  • 79
  • 84