[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 438
  • Last Modified:

synchronize user accounts from one samba domain to another samba server

I have created a samba domain for windows clients to login. But i was wondering if anyone knows how to synchronize the user account and samba passwords to another samba server like active directory as follow:

samba server 1 ---> samba server 2

if a user is created in samba server 1, the same user detail including the samba server would be replicated or synchronize to samba server 2

thx in advance
0
loser1
Asked:
loser1
  • 2
1 Solution
 
Alf666Commented:
Your second samba server should be a BDC of your first one (the PDC).

It works exactly the same as in windows.
0
 
loser1Author Commented:
yes, but how to i replicate the smbpasswd from samba server 1 to samba server 2
0
 
Alf666Commented:
Your best shot is using LDAP as a user credentials storage.

The smbpasswd replication is not a good method because it needs to work both ways.

You can have a single LDAP server to which both the PDC and the BDC request infos, or, you can also set up LDAP replication in between a master and a slave. This is the best config.

For more information, I suggest reading the following page :

http://us1.samba.org/samba/docs/man/samba-bdc.html

It describes the different options in detail including pros and cons.
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now