Pular para o conteúdo principal

Easily connect Linux to a Windows Domain

Easily connect Linux to a Windows Domain: "

The task of joining Linux to a Windows domain can be a challenge. I have covered it before here (see my article “Join a Ubuntu machine to a Windows domain“), but many users have had issues with Likewise Open either not being able to join or not being able to reliably remain joined. Naturally, if you are able to connect successfully with Likewise Open, you should stick with that. But if you are looking for an easier method of joining a domain, I have found a great solution…Centrify Express.

Centrify Express is free tool offered by the company that makes various Single Sign-On tools, of which only Express is available free and easily for the Linux operating system. Once you have used this tool to join a Windows Domain you will be shocked at how easily it is done.

Installation

I am going to illustrate this installation process on a Ubuntu 10.10 machine. If you need to install on a different distribution (or on Windows, or Mac) you will need to sign up for a download. If you do that you will find pre-compiled binaries for:

  • Windows
  • Mac
  • CentOS
  • Debian
  • Mandriva
  • SUSE
  • OpenSolaris
  • Oracle Enterprise Linux
  • Red Hat Enterprise Linux
  • Scientific Linux

But if you are using Ubuntu, you can follow these easy steps:

  1. Open up the Ubuntu Software Center.
  2. Search for “centrify” (No quotes).
  3. Click Install.
  4. Type your sudo password and press Enter.
  5. Once the installation is finished you can then close out the Ubuntu Software Center.

Now it’s time to do just a tiny bit of configuration.

Configuration

The only configuration you need to take care of is in the /etc/nsswitch file. In that file you will find a line that looks like:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4

Change that file to just read:

hosts: files dns

Now there is one other configuration you need to take care of BEFORE you join the domain. In the file /etc/centrifydc/group.ignore you need to add the group “admin” (no quotes) to this list. If you do not do this your sudo users will not longer have sudo privileges. Without sudo privileges your users will not be able to install applications or run anything that needs administrative permissions.

Once you have configured that file, save it. You are now ready to join the comain.

Joining the domain

You will need the domain admin password for this to be successful. To join the domain do the following:

Open up a terminal window.

Issue the command sudo adjoin -w DOMAIN (Where DOMAIN is the domain you want to join).

Type the Domain admin password and hit Enter.

It may take some time but you will eventually be joined to the domain. You should now be able to open up Nautilus and explore your network by hostname as if you were using a Windows machine.

If you find you can not see your network by hostname, you might have to reboot and then log in with your AD credentials.

Final thoughts

You now have two methods with which to join a Windows domain. The enterprise pastures, for Linux, are growing greener and greener by the day.


© Jack Wallen for gHacks Technology News, 2010. | Permalink | Add to del.icio.us, digg, facebook, reddit, twitter
Post tags: , ,

"

Comentários

Postagens mais visitadas deste blog

Favigen, Favicon Generator

Favigen, Favicon Generator : " Favicons are small icons that help identify websites. They are used as a visual representation of a website both in the web browser and at many online services. The three most prominent locations of favicons are the browser’s address bar, the tabbar and the bookmarks folder. Many webmasters like to create custom favicons to add that custom identifier to their website. Favicons can be created in many image and icon editors, but also online. Favigen is a straightforward favicon generator that can turn an image into a favicon. All that it takes is to pick an image from the local hard drive first, select the dimensions of the favicon and click the submit button to make the service generate the favicon. Favigen supports several image formats, including jpg and png, and it does not seem to have size restrictions either. Available image dimensions range are 16×16, 32×32 and 64×64. The generated favicon is displayed directly on the page. A click on do...

A simple rsync script to back up your home directory

A simple rsync script to back up your home directory : " Backing up important data is obviously something we should all do. Unfortunately, it is not always easy to make it happen. We get lazy; we do not have the additional hardware for a backup server; it takes a long time and a lot of CDs to back up to optical media; we do not trust online backup services; backup schemes are difficult to set up and use — any of dozens of reasons can stand in our way. Still, we know we should be backing up our important data. Modern open source Unix-like operating systems offer a plethora of options for incredibly simple, effective backup schemes, however. If the problem is figuring out how to set one up, a simple rsync solution may be exactly what you need. The rsync utility is used to synchronize files between two systems. It does so by way of incremental copies, only copying from the source to the destination what has not already been copied there, saving time, network bandwidth, and syst...

Google Wave now open to the public: faster, Robots and Gadgets aplenty!

Google Wave now open to the public: faster, Robots and Gadgets aplenty! : " Filed under: Internet , Google If you somehow missed it, Google Wave is now a bonafide Labs project: rather than being an invite-only alpha, it's now a public beta test! If you don't already have an account, just head on over to Wave and use your regular Google login details. If you've not seen any of the Google Wave introductory videos , you should check them out -- they explain the whole thing a lot more succinctly than I ever could. Wave has also been enabled for Google Apps domains -- businesses could convert their internal communication to Waves today! Leading up to this public release there have a lot of changes. It's by no means finished, but Google Wave is now a lot faster . It's also more intuitive -- more useful -- and given the large number of Robots and Gadgets now reaching prime-time readiness, it feels like the mass adoption of Wave is imminent. Also, if you're an ol...