[CentOS] Can I configure CentOS 8.1 1911 as an Active Directory Domain Controller like a Windows Server?

Wed Jan 22 16:20:55 UTC 2020
Jonathan Billings <billings at negate.org>

On Wed, Jan 22, 2020 at 09:49:45PM +0800, Turritopsis Dohrnii Teo En Ming wrote:
> I have also found another guide at samba.org but not very sure whether
> it is good.
> Title: Setting up Samba as an Active Directory Domain Controller
> Link: https://wiki.samba.org/index.php/Setting_up_Samba_as_an_Active_Directory_Domain_Controller

This guide says to use Samba built against Heimdal.  The Samba in
RHEL/CentOS is built against MIT Kerberos, so you'd need to rebuild
Samba.  There is experimental support for using MIT Kerberos as a DC,
if you're willing to risk it.

Also, with a quick glance over the CentOS8 spec file for Samba, it
builds samba without the Domain Controller configure flag by default.
(Look at the with_dc RPM spec variable here:
https://git.centos.org/rpms/samba/blob/c8/f/SPECS/samba.spec )

It looks like if you want to run an AD DC on CentOS, you'll need to
find some other packages or maintain them yourself.  Good luck.

Jonathan Billings <billings at negate.org>