Watch out! This tutorial is over 7 years old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.
This tutorial documents the steps to get Samba 4 working as a Active Directory Domain Controller using Ubuntu 16.04.