How to get Windows and Linux to cooperate on the network

It's always been possible for Windows and Linux to cooperate. Now it's easier than ever.

By Steven J. Vaughan-Nichols Windows, Linux, Windows 6 comments

"East is East, and West is West, and never the twain shall meet," is a line from Rudyard Kipling's The Ballad of East and West. It could also apply to Windows and Linux. If you don't know what you're doing, getting the two to meet on the network can seem like it's almost impossible. Fortunately, it has gotten easier over time.

It's not a job though for an average Linux administrator or a Windows Microsoft Certified Systems Engineer (MCSE) who's still wet behind the ears. While parts of it, such as sharing files and printers across a network between Windows and Linux systems, are simple enough, bridging the gap between Active Directory (AD) and Lightweight Directory Access Protocol (LDAP) requires some serious network engineering.

[ Linux School: Getting started with Linix ]

The first part, simply sharing files and printers, can be handled by using Samba as a server or as a client on Linux and Mac desktops. Samba is an open-source program that provides Server Message Block/Common Internet File System (SMB/CIFS) file services. With Samba, your Linux servers can act just like Windows file and printer servers to all your desktop clients. Whether your PCs run Windows 7, XP, Mac OS X, Snow Leopard, or Ubuntu, Samba can get the files to them whenever they need them without much fuss or muss.

But, once you start trying to manage logins and authentication between Linux and Windows systems with just AD or by combining LDAP and AD, things can get complicated. One way to handle this is just not to use AD at all. I know, I know, that's heresy to Windows administrators. But, for small to medium business networks, an LDAP implementation such as OpenLDAP may be all you need for both Windows and Linux servers and desktops. If you need more, there are other network directories that can work for both operating systems that come with enterprise-level support such as Novell's eDirectory.

If you can't wean yourself from AD, and let's face it, there are a lot of reasons to stick with AD, there are other approaches to Linux and Windows network rapprochement. For starters, there's Likewise Software with Likewise Enterprise.
With this program, you can Join non-Windows servers to AD. In addition, you have a centralized administration console that lets you provision and manage users and systems no matter whether they're running Linux, Unix, and Mac OS X. Last, but never least, you can use it to provide a SSO (Single Sign-on) regardless of the user's native operating system.

[ And the best Linux desktop distro of all is... ]

If you want to give it a try first, Likewise also offers Likewise Open an open-source program that lets Linux and Mac users authenticate against and join AD domains and forests. This software also enforces AD password policies across Linux systems.

Likewise isn't the only company that tries to get Linux and Windows servers to coordinate with each other. Centrify also offers programs that can get the pair working together. In Centrify's case, Centrify DirectControl works by making a non-Microsoft server, workstation or device appear as a Windows AD client. This enables Windows administrators to secure Linux and Unix systems using their familiar AD authentication, access control and Group Policy services. To this, however, requires a particular client for each version of Linux, Unix, or Mac OS X that you're running.

6 comments

    Anonymous 1 year ago
    It is a free offering for AD integration for Linux/Mac that also offers a deployment tool and AD-ized versions of OpenSSH and Samba. http://www.centrify.com/express
    Anonymous 1 year ago
    we use Vintella and it works great.
    Anonymous 1 year ago
    If you have AD entrenched in your environment, the simplest way to integrate is to use kerberos. Distribute your /etc/passwd information for UNIX or Linux via nis, LDAP, 411, or just do it manually. But, connect them via kerberos and the most important part of integration (the passwords) is done for you. This also gives you the added bonus of Single Sign On.
    Anonymous 1 year ago
    Almost all Linux distributions just support Kerberos. Since AD does Kerberos you can join all machines in the same kerberos REALM, and you will have single sign on without any additional products. The only thing that AD cannot do is provide group memberships to non-windows machines. If you need that too you can use products like Likewise. The disadvantage is that AD can only handle a single Unix domain. To support multiple Unix domains and keep single sign on, use Kerberos to the AD, but keep group memberships in a separate LDAP directory for each UNIX domain.
    Anonymous 1 year ago in reply to Anonymous
    You can actually sync users between an LDAP directory and AD with a Windows Sync Agreement in some LDAP servers like RHDS and Fedora 389 DS and manage your AD users (and groups) from the LDAP server.Pair with that the fact that you can create a trust between the AD Domain and the Kerberos Realm and map security credentials in AD and it is even possible to log into the windows domain with your kerberos credentials.The beauty of this is that you end up being able to use a single user id and password managed from one side that allows you to log in to both environments. Look into Windows Sync Agreements in the RHDS Admin Guide or in the 389 DS documentation.The kerberos stuff is a bit out dated, but documented for 2000 server. Regardless it amounts to creating two principles on the kerberos serverkrbtgt@WINDOMAIN.COM@KERBREALM.COMkrbtgt@KERBREALM.COM@WINDOMAIN.COMThen creating a trust and selecting realm trust instead of domain trust and using as the password the same that you set for the two krbtgt's above.Then choose to look at the advanced options in the AD User and Computer tool, look at the kerberos tab and create a mapping for you@KERBREALM.COMLook into it if you're interested. Good stuff. If someone is genuinely interested in the gorey details I can be convinced to write it up.
    Anonymous 1 year ago
    Will you PLEASE start MODERATING ALL comments to prevent spammers to post their GARBAGE???I am interested in legitimate comments, but am frustrated with your ignoring the spammers!!!Have respect for your legitimate readers of your site!Rick Stanley

      Add a comment

      Post a comment using one of these accounts
      Or join now
      At least 6 characters

      Note: Comment will appear soon after you have activated your account.
      Obscene/spam comments will be removed and accounts suspended.
      The information you submit is subject to our Privacy Policy and Terms of Service.

      ITworld LIVE

      WindowsWhite Papers & Webcasts

      White Paper

      Microsoft Volume Licensing Reference Guide

      This guide provides an overview of the key features of Microsoft Volume Licensing programs. The information is presented by organizational type and size-two of the most important keys to determining your best Volume Licensing option.

      White Paper

      HP Software Licensing & Management Solutions for Microsoft

      See how HP Software Licensing & Management Solutions (SLMS) can help you identify the best Microsoft licensing program for your needs, get the most from your licensing agreement, and maximize your Microsoft software investment.

      White Paper

      Microsoft Open Value Program Guide

      In this overview, see how Microsoft Open Value provides a flexible, affordable way for small to midsize organizations (i.e. those with five or more desktop PCs) to use and manage all their Microsoft licensed products under a single agreement.

      White Paper

      Microsoft Volume Licensing Comparison - Enterprise

      With this quick-reference document, you can easily compare the available Microsoft Volume Licensing programs for enterprise organizations with 250+ devices, and tailor a program to help save costs, manage multiple licenses, and keep software up-to-date.

      White Paper

      Microsoft Enterprise Agreement Program Brief

      This white paper provides an in-depth look into how the Microsoft Enterprise Agreement Program provides with flexibility to choose among on-premises software and cloud services to best suit your user needs, and helps you optimize your technology spend as business priorities change.

      See more White Papers | Webcasts

      Answers - Powered by ITworld

      Ask a question

      Ask a Question