samba logoHistorically domain controllers (DCs) were Windows servers responding to security authentication requests (logging in, etc.) within the Windows Server domain. Today Samba project goes beyond emulating Windows shares and can be used as Primary Domain Controller in Windows network.

To help people who are under installing/configuring Samba as a DC in their network I published here several links which helped me with this task. First of all, be ready for long time configuring as compared with Windows Active Directory configuration it takes much more time to do the same task with Samba… But practically vendor independent solutions usually worth time spent on compiling, installing, configuration and maintenance.

Why Debian/Ubuntu? Looking through Google’s findings regarding DC set up on these distributions, I noticed some kind of lack of the quality resources lying at the top.

1. The first place one should visit in order to start with above mentioned task is Samba official documentation. Probably not everything that is covered by it would be used, but this is the only place you can find some special aspects of installation and configuration their software.

2. Ricky Jone’s article on is an excellent guide on how to get the task done on Ubuntu 7.10.

3. Excellent article “SAMBA (Domaincontroller) Server For Small Workgroups With Ubuntu 6.10” written by Till Brehm is applicable also for later Ubuntu versions.

4. Steve Lacey wrote interesting and informative article about Samba on Debian as primary DC on his blog.

5. A certain mawi wrote very informative manual:

Read this document on Scribd: Samba And Ldap On Debian




  1. July 5, 2008  1:19 pm by confiq Reply

    Nice touch...

    Lot of smb (small medium business) are considering to move to linux and this is huge step for them.

    Thanks for sharing...

  2. July 7, 2008  8:04 pm by artiomix Reply

    Thanks for commenting, confiq!

  3. September 13, 2008  9:06 am by janskey Reply

    does anyone tried pulling down users/groups in active directory and import it to samba/ldap server? my objective is to remove our windows 2003 AD server and user samba+ldap authentications. any advice?

  4. January 4, 2009  8:17 am by Brian Reply

    You can also just download ebox it has a domain controller pre-configured, mail server, proxy, and much more. Its ubuntu 8.04 server with a GUIit'e awsome!!!! I am running a mixed environment ebox (x2), zeroshell, MS small business server 2003, ubuntu 8.04 + VHCS2.47 for a nice webhostng and email platform (use only for yourself not good if you are selling webhosting to insecure for that.) minimum expence for great set up. Only using MS 2003 because P.O.S. program only runs on windows.(tried wine no go)!!

  5. January 4, 2009  8:24 am by Brian Reply

    If you already own MS server 2003 why get rid of it AD works better and sounds like you already have it configured?? Like me old pappy used to say if it ain't broke don't fix it. Are you just looking to spend your bosses money?

  6. September 3, 2010  2:57 pm by Agnes Karen Reply

    Interesting article.. Would love to see more of this.. Awesome blog btw! Subscribed

  7. February 17, 2011  5:01 am by Abenzio Reply

    I enjoy your blog posts and I've bookmarked your rss. Nevertheless, would it be possible to get your blog posts by way of email as soon as you post them - would be very convenient :)

    Xbox 360 Wireless Controller

  8. February 17, 2011  4:13 pm by jobs in graphic design Reply

    I completely understand what you have stated. In fact, I browsed through your several other blogposts and I believe that you're absolutely right. Great job with this particular website.

  9. April 20, 2011  4:23 pm by debt management Reply

    Hi there. I discovered your website via Google even as searching for a related matter, your website came up. It looks great. I have bookmarked it in my google bookmarks to visit later.

  10. April 27, 2011  10:44 am by professional car valeting Reply

    Good site! I truly love its clean look, just like we love to clean cars lol. I am going to retweet this link on my personal account. I've subscribed to your RSS feed which I look forward to the next artical. Have a wash and wax day!

  11. May 25, 2011  4:07 am by Tanja Sherfield Reply

    Excellent post.I want to thank you for this informative read, I really appreciate sharing this great post. Keep up your work...

  12. May 27, 2011  2:40 am by Jigar Khurana Reply

    You made several fine points there. I did a search on the issue and found a good number of persons will agree with your blog.

Leave a reply


Your email address will not be published.