AD Samba4
From Stadm
Samba 4 Active Directory DC
Installing Samba 4 onto CentOS
- Install a minimal install of CentOS
- change the hostname
hostname sambatest
- manually edit or add network-scripts if not there
cd /etc/sysconfig/network-scripts/ vi ifcfg-eth0
- Make sure these options are included
DEVICE=eth0 HWADDR=**:**:**:**:**:** TYPE=ETHERNET ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=dhcp
- restart the network
service network restart
- run yum update
- install vim or an editor of your choice, vi comes included with minimal
- SELinux must be disabled:
vim /etc/sysconfig/selinux
- change "SELINUX=enforcing" to "SELINUX=disabled"
- restart the computer
shutdown -r now
- install a couple packages that will be required for building and installing samba
yum install glibc glibc-devel gcc python* libacl-devel krb5-server krb5-workstation krb5-libs pam_krb5 make gnutls-devel openssl-devel bind bind-libs bind-utils
- install git, git will be used to download samba
yum install git-core git clone http://gitweb.samba.org/samba.git ~/samba-master
- reboot server so all packages and updates are applied
shutdown -r now
- login and build the samba install
cd ~/samba-master ./configure --enable-debug --enable-selftest
- if it completes successfully
make make install
Enabling Samba 4 as DC
- run command
/usr/local/samba/bin/samba-tool domain provision
- the domain-provision tool should pick all defaults automatically, however they can be changed to your liking
- once the provision tool has finished successfully restart the server
shutdown -r now
- once system has started enable samba 4 and add it start at boot
/usr/local/samba/sbin/samba cd /etc/rc.d/ vim rc.local
- append "/usr/local/samba/sbin/samba" without quotations to the end of the file and then save