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

Improve Windows Security By Closing Open Ports

Improve Windows Security By Closing Open Ports : " A standard Windows operating system has a number of ports open after installation. Some of these ports are needed for the system to function properly while others might not. These ports can pose a security risk as every open port on a system might be an entry point for a malicious user. A port basically allows communication to or from the device. Characteristics are a port number, an IP address and a protocol type. This article will give you the tools at hand to identify and evaluate the open ports on your Windows system to make a decision in the end whether they can or should be closed or left open. Software programs and tools that we will use: CurrPorts : Available for 32-bit and 64-bit editions of Windows. It is a port monitor that displays all open ports on a computer system. We will use it to identify the ports and the programs that are using them. Windows Task Manager: Also used to identify the programs and link some p

Diagnosing a Blue Screen of Death Error in Windows

Diagnosing a Blue Screen of Death Error in Windows : For many years now the famous Blue Screen of Death (BSoD) has been the ultimate indication that something disastrous has happened to make your computer die, but how useful is the information in the BSoD and the respective crash dump file that Windows produces? The best article I ever found explaining the BSoD in depth is here on the Microsoft website, however it’s quite technical and doesn’t discuss how to actually troubleshoot a problem. The crash dump file is just technical details of what was being held in the computer’s memory at the time of the crash, and this will include details on every driver and service that was loaded, and every piece of software that was running. The most useful pieces of information are to be found on the BSoD itself and are highlighted on the screenshot below. These are the BSoD error name, the stop error code and the name of the driver or service that has failed (this last one might not always appea

Use BGInfo to Build a Database of System Information of Your Network Computers

Use BGInfo to Build a Database of System Information of Your Network Computers : " One of the more popular tools of the Sysinternals suite among system administrators is BGInfo which tacks real-time system information to your desktop wallpaper when you first login. For obvious reasons, having information such as system memory, available hard drive space and system up time (among others) right in front of you is very convenient when you are managing several systems. A little known feature about this handy utility is the ability to have system information automatically saved to a SQL database or some other data file. With a few minutes of setup work you can easily configure BGInfo to record system information of all your network computers in a centralized storage location. You can then use this data to monitor or report on these systems however you see fit. BGInfo Setup If you are familiar with BGInfo, you can skip this section. However, if you have never used this tool, it takes ju