You are on page 1of 1

1- Set the hostname

hostnamectl set-hostname dc1

2- Configure static IP
In /etc/sysconfig/network-script/ifcfg-enp0s3
IPADDR=10.10.10.11
NETMASK=255.255.255.0
BOOTPROTO=static
ONBOOT=yes

3- Configure static resolutions in /etc/hosts


10.10.10.11 dc1 dc1.ulome.lan

4- Download and install samba


wget
tar xvf samba-4.8.2.tar.gz
cd samba-4.8.2/
./configure --verbose --progress --with-systemd --enable-debug --sbindir=/sbin/
--bindir=/usr/local/bin/
make -j 7
make install

5- Remove /etc/krb5.conf
rm /etc/krb5.conf

6- Provision
samba-tool domain provision --use-rfc2307 --realm=ULOME.LAN --domain=ulome
--server-role=dc --option="interfaces=lo enp0s3" --option="bind interfaces
only=yes" --next-rid=10000 --interactive

7- Configure firewall
TCP : 636 49152 49153 49154 3268 3269 389 135 464 53 88 445 139
UDP : 389 464 53 88 137 138
firewall-cmd --add-port=#PRT/[TCP|UDP] --permanent

Date - 19/06/2018

8- Integrating Windows 10
Go to the Windows 10 host.
Make sure it is in the same its DNS server is the DC.(Add as many dns server as
your DCs).
Ensure your have the local administrator credentials and you have a domain account
which can join client to the domain.

9- Add samba ldap tls CA cert to system


cd /usr/local/samba/private/tls/ca.pem /etc/pki/ca-trust/source/anchors/
update-ca-trust

You might also like