Samba4 as Primary Domain Controller

Written by Adrien le Maire - 25 march 2011


It is a service available under GNU/Linux. Originally build for sharing files with windows using a smb-compatible protocol.

The version 4 implements a lot of new fetaures :
  • support of the 'Active Directory' logon and administration protocols
  • new 'full coverage' testsuites
  • full NTFS semantics for sharing backends
  • Internal LDAP server, with AD semantics
  • Internal Kerberos server, including PAC support
  • Bind9 integration for AD DNS support
  • fully asynchronous internals
  • flexible process models
  • better scalablilty from micro to very large installations
  • new RPC infrastructure (PIDL)
  • flexible database architecture (LDB)
  • Python support - used excessively for client and management tools
  • generic security subsystem (GENSEC)
  • over 50% auto-generated code!
So if you want to have an Active Directory like server but completly free and under Ubuntu ; there's a way to install it very easily way to install the daily-build version. If you wanna do less update of samba; you would use the version provided by ubuntu.

For those who want to use the Ubuntu version, pass directly to the point 3.

  1. Add two repositories
  2. $ apt-add-repository ppa:samba-team/ppa
    $ apt-add-repository ppa:openchange/daily
    if you don't have the command apt-add-repo ; install it :
    sudo apt-get install python-software-properties

  3. Set the packages from ppa repositories prioritirly
  4. You need to create the file /etc/apt/preferences.d/ppa with the following content :
    Package: *
    Pin: origin ppa.launchpad.net
    Pin-Priority: 600

  5. Install the right pakages
  6. aptitude update && aptitude install samba4 openchangeserver samba4-ldb libwbclient0
    If you get an error during the process ; you may need to create a link : # ln -s /usr/lib/libwbclient.so.0 /usr/lib/libwbclient.so then run "dpkg --configure -a"

  7. To configure and install your domain
  8. Check your hosts file to match with the hostname. Remove the configuration file " /etc/samba/smb.conf" Adapt the following command line to your case.
    bash /usr/share/samba/setup/provision --realm=pdc.mydomain --domain=MYDOMAIN --adminpass=password --server-role='domain controller'
    add /var/lib/samba/private/named.conf to /etc/bind/named.conf
If you get an error after an upgrade; search on the web or wait for a new version ; it's still an alpha version. Sources :

Classified in : Linux, Network Services - Tags : Samba, PDC, Domain controller, Ubuntu

Write a comment

Capcha
Enter image code : 

Categories

Archives

Tags

Last articles

Last comments