samba 4 domain controller
Starting with version 4, Samba can now run as a domain controller. It can support Windows and Linux clients. You can compile it from source or install it via package managers such as rpm, yum and apt. You can always use it as a standard shared drive and even use it as a print server.