As of Samba 4.0, Samba has the ability to act as a primary domain controller (PDC) in a manner that is compatible with Active Directory.
Installing on Ubuntu 14.04:
/etc/hoststo point to that IP address rather than localhost.
sudo apt-get install ntp
smbd/nmbdfrom running automatically:
sudo bash -c 'echo "manual" > /etc/init/nmbd.override' sudo bash –c 'echo "manual" > /etc/init/smbd.override'
sudo apt-get install samba smbclient
sudo rm /etc/samba/smb.conf