Difference between revisions of "AD Samba4 Centos 7"

From Stadm
Jump to navigationJump to search
(Created page with "Category:Active Projects Category:Projects Category:Samba Category:Samba4AD ==Purpose== The purpose of this wiki page is to document the steps needed to set u...")
 
Line 6: Line 6:
 
==Purpose==
 
==Purpose==
 
The purpose of this wiki page is to document the steps needed to set up or recreate an Active Directory(AD) Environment using Samba 4. Not all features of a Windows Server AD are incorporated into Samba 4. At the time of writing/editing the current version of Samba 4 being used is: 4.1.16
 
The purpose of this wiki page is to document the steps needed to set up or recreate an Active Directory(AD) Environment using Samba 4. Not all features of a Windows Server AD are incorporated into Samba 4. At the time of writing/editing the current version of Samba 4 being used is: 4.1.16
 +
 
This page serves to show how to Setup Samba 4 on a Centos 7 machine and migrate over from Centos 6.
 
This page serves to show how to Setup Samba 4 on a Centos 7 machine and migrate over from Centos 6.
  

Revision as of 13:43, 18 February 2015


Purpose

The purpose of this wiki page is to document the steps needed to set up or recreate an Active Directory(AD) Environment using Samba 4. Not all features of a Windows Server AD are incorporated into Samba 4. At the time of writing/editing the current version of Samba 4 being used is: 4.1.16

This page serves to show how to Setup Samba 4 on a Centos 7 machine and migrate over from Centos 6.

Current operating system Samba 4 is run on: Centos 7

  • Note: Until this message removed consider the following a work in progress

Samba 4 Active Directory Domain Controller

Install CentOS

  • Install a minimal version of Centos 7 on a VM or dev box

Samba 4 Requirements

  • Here is a minimal list of packages needed to compile Samba 4 with AD support
yum install perl gcc libacl-devel libblkid-devel gnutls-devel \
>    readline-devel python-devel gdb pkgconfig krb5-workstation \
>    zlib-devel setroubleshoot-server libaio-devel \
>    setroubleshoot-plugins policycoreutils-python \
>    libsemanage-python setools-libs-python setools-libs \
>    popt-devel libpcap-devel sqlite-devel libidn-devel \
>    libxml2-devel libacl-devel libsepol-devel libattr-devel \
>    keyutils-libs-devel cyrus-sasl-devel cups-devel bind-utils \
>    libxslt docbook-style-xsl openldap-devel pam-devel
  • Here are optional packages that are used in this guide
yum install vim wget

Installing Samba

wget http://www.samba.org/samba/ftp/stable/samba-4.1.16.tar.gz
  • Extract the archive if not done so already
tar -zxvf samba-4.1.16.tar.gz
cd ~/samba-4.1.16
./configure --enable-debug --enable-selftest --with-ads --with-systemd
  • If it completes successfully, make sure it is Building with Active Directory support, if not you may have forgotten a few packages
  • Finally compile and then install
make
make install