Samba servers and multiple domains

Samba servers and multiple domains

Is it possible to have one Samba server to be the domain controller for multiple small domains?

    Requires Free Membership to View

    When you register, my team of editors will also send you resources covering Linux administration and management; integration and interoperability between Linux, Windows and Unix; securing Linux and mixed-platform environments; and migrating to Linux.

    Cathleen A. Gagne, Senior Editorial Director

    By submitting your registration information to SearchEnterpriseLinux.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchEnterpriseLinux.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

Technically this is possible, but it's not intuitive or well-documented. Technically, you need to run multiple instances of Samba rather than using one Samba instance to control multiple domains. The Samba team is working on supplying features like this that are already implemented in Microsoft Active Directory. In your situation I have two potential solutions.
  1. The way to leverage one phyical server is to run chrooted instances of Samba so you have multiple instances of Samba running on the same box but each serving your individual domains. It's not as elegant but it should work. I couldn't find a document on how to run chroot with Samba but you could use this example of best practices for chroot to give you an idea.
  2. The other solution would be to check out Xen, which would allow you to run seperate Linux virtual machines with an instance of Samba in each one. The latest SUSE, 9.3, supports this, as do many other Linux distributions. This approach would require a seperate IP and host name for each installation but it would allow you to keep everything seperate from a domain perspective but consolidated on the same machine.

This was first published in April 2005