Difference between revisions of "Samba AD on CentOS7"

(Post Setup)
(Post Setup)
Line 27: Line 27:
 
===DC2 Setup===
 
===DC2 Setup===
 
==Post Setup==
 
==Post Setup==
This post setup will configure the services to startup and disable Selinux and Firewall, during my test the firewall did not save the ports, so I´v decided to disable to avoid problems.
+
This post setup will configure the services to startup and disable Selinux and Firewall, during my tests the firewall did not save the allowed ports, even with permanent flag, so I´v decided to disable to avoid problems.
 
  wget https://raw.githubusercontent.com/hflautert/lotus7/master/samba4/post_install_samba4.sh
 
  wget https://raw.githubusercontent.com/hflautert/lotus7/master/samba4/post_install_samba4.sh
 
  chmod +x post_install_samba4.sh
 
  chmod +x post_install_samba4.sh

Revision as of 12:01, 20 August 2015

This page describe Samba4 Active Directory installation on CentOS. The environment is composed of 2 DCs with replication, and one fileserver.

Enviroment

dc1.domain.com.br
192.168.1.1
dc2.domain.com.br
192.168.1.2
fileserver.domain.com.br
192.168.1.3

Installation

The installation is based on CentOS7 Minimal ISO, you should update the system, and install basic tools.

yum update
yum install -y vim wget

Pre-Setup

This pre-setup can be done in all 3 servers, basically it will setup the Sernet Samba Repository and install samba from repo.

wget https://raw.githubusercontent.com/hflautert/lotus7/master/samba4/pre_install_samba4.sh
chmod +x pre_install_samba4.sh
./pre_install_samba4.sh

DC1 Setup

First of all we need a domain, so lets provision it.

samba-tool domain provision --use-rfc2307 --interactive

DC2 Setup

Post Setup

This post setup will configure the services to startup and disable Selinux and Firewall, during my tests the firewall did not save the allowed ports, even with permanent flag, so I´v decided to disable to avoid problems.

wget https://raw.githubusercontent.com/hflautert/lotus7/master/samba4/post_install_samba4.sh
chmod +x post_install_samba4.sh
./post_install_samba4.

Fileserver Setup