There's a closed pull request on the Samba Samba Test repository Domain clone https://github.com/samba-team/samba/pull/2 Description: Add a new tool to do a domain clone