Tutorial : Building Active Directory Server, Domain Controller & File Server with Excellent Samba 4 Appliance-Part 2

Previous Article : Tutorial : Building Active Directory Server, Domain Controller & File Server with Excellent Samba 4 Appliance-Part 1

Excellent Samba 4 Appliance has many benefit to simplify active directory server deployment using Samba 4. Excellent Samba 4 appliance built with the following target :

  1. Create minimum appliance based on SUSE Linux Enterprise Server 11 SP2 (can also be built with openSUSE variant)
  2. Include all required dependency file, especially for Samba4 compilation process
  3. Automatically compile Samba 4 binary and install it into /usr/local/samba
  4. Include Windows Administrative Tools for Windows XP and Windows 7
  5. Include a script for Samba 4 provisioning by asking some parameters

Using script has some benefits over manual install :

  1. Can be done several times with different parameters
  2. Avoid typos
  3. Reduced setup time
  4. By pass manual process, suitable for newbie that unfamiliar with manual configuration

All scripts are included in Excellent Samba 4 Appliance since version 0.9.1. The script is located in the folder / srv/v and to run it simply typing the following command:

cd /srv/v
./dcpromo.sh

or for Bahasa Indonesia :

cd /srv/v
./dcpromo.excellent

Note : Sorry for some minor typo on the script :-)

After running the script, Samba 4 active directory server should be successfully implemented. Use Windows XP or Windows 7, modify it’s DNS configuration to use Samba 4 server as primary DNS, configure correct date & time and then try to joining your Windows client into Samba 4 Active Directory.

vavai-Samba4-Join-Domain1

Vavai-Samba4-Join-Domain2

After joining client, install Windows Administrative tools available on http://samba4-ip-address (ex ; http://192.168.1.212). Windows administrative tools can be used for Active Directory management, including add/remove user, create organization unit, delegate control and implement Group Policy Object (GPO)

You can follow any responses to this entry through the RSS 2.0 feed.You can leave a response, or trackback from your own site.
12 Responses
  1. Jonathan Montero says:

    Hello man… i’m trying to do that FROM SCRATCH, you know??? I mean, not using you live cd… I was wondering, can you explain you .sh file??? i mean… line by line…

    Thanks in advance

  2. Vavai says:

    Hi Jonathan Montero,

    I’ll be publish your request on next tutorial : Building Active Directory based on Samba 4 with SLES 11 SP2

  3. Arun says:

    Hi Vavai,

    First of all thank you very much for the tutorial.I have a doubt.In the first part of the tuturial you gave the ip address 192.168.1.208 and in the second part you gave the ip for dcprmo 192.168.1.212.Should we give different ips or the same..plse clarify

  4. Jonathan Montero says:

    Hey man… Thanks…. :D

    Please, focus on the DNS part… you know, the zones… Because now, the samba 4 (the last release will be out at the end of the november) has its own DNS server…

    I’d like to know how to use its own DNS…

    Thanks again…

  5. Vavai says:

    @Jonathan Montero,

    Due to DNS-related thread on Samba mailing list, I would prefer to use external DNS by using Bind 9.9 as I’ve using on my Appliance. If you wish to use internal DNS Server included on Samba 4, there should be nothing to do on DNS part except by using internal while provisioning Samba 4

    • Arun says:

      thanks Vavai,i gave the dns server in the yast tool 4.2.2.2(a public dns server)and tried and i am getting TWO errorS after dcpromo.stage 5 that STARTING NAME SERVER BIND ..FAILED AND AN ANOTHER ERROR STARTING NAME SERVER BIND-WARNING /VAR/RUN/NAMED/NAMED.PID ALREADY EXISTS!…I tried a lot of time with different setting plse help me…

  6. Vavai says:

    @Arun,

    Ouch, sorry, there should be a similar IP for both of them. Typo on the screenshot came from different testing.

    For the second question, due to your internal DNS Server configuration, your name server should be using your Samba IP as first Name Server (NS1)

    Could you please paste the relevant logs from /var/log/messages related to BIND?

  7. qafro says:

    Well done, you need to write a guide or show us how I can update the samba4 or how you built it?
    NB what’s you twitter account
    tweet me @qafro

  8. qafro says:

    Job well done, I want to know how you built this Samba4 instance because I want to build one for Fedora OS or Amazon CE.
    Maybe update the samba4 server can you post a guide of how to do it?

  9. Jonathan Montero says:

    qafro… you need to run this in CentOS and Fedora…

    yum -y install make gcc rpm-build libtool autoconf openssl-devel libacl-devel libblkid-devel gnutls-devel readline-devel python-devel gdb pkgconfig bind-utils gtkhtml setroubleshoot-server setroubleshoot-plugins policycoreutils-python libsemanage-python setools-libs-python setools-libs krb5-server krb5-libs krb5-workstation wget

    then, download the samba4 (the rc5 is the last at this moment)
    http://ftp.samba.org/pub/samba/rc/

    uncompress it, then enter to the directory and run this…

    ./configure.developer

    then

    make

    then

    make install

  10. penzoiders says:

    @Vavai
    thanks for the great job, I’m testing Version 1.0.4.
    Can you tell me how to upgrade Samba version on an existing appliance. now version 4.0.5 is out.. shall I just download and extract to /srv/v/samba-4.0.5 and

    ./configure.developer
    make
    make install

    ?

    thanks for advice.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Switch to our mobile site