Posts Tagged ‘windows’

Authenticate to Active Directory with Ubuntu

9. July 2009

1 Comment »

While Linux is a fantastic operating system, when it comes to user rights management, Active Directory is far superior than anything Linux currently implements. As a result many businesses and organizations implement the technology. For a longtime it was extremely difficult to get a Linux operating system to authenticate with active directory – configuring multiple services and managing to get them to work with each other, let alone work with Windows was a task best left for those with years of Linux administration experience. However, in recent years as Linux has become more user friendly, and it should be no surprise that authenticating with active directory has become easy too. In the past few days I have been working with an opensource software called likewise-open which is in the official Ubuntu repositories. Below is a quick guide to getting started and some tips/issues I have found.

Authenticating with likewise-open 4.1 (from Ubuntu 8.04 repository)

1. Install likewise-open
# sudo apt-get install likewise-open

2. Join the domain
# sudo domainjoin-cli join your.fqdn domain_admin
For example:
# sudo domainjoin-cli join example.com Administrator

REBOOT

3. Update rc.d
# sudo update-rc.d likewise-open defaults

4. Start likewise-open
# sudo /etc/init.d/likewise-open start

Using the default domain with likewise-open 4.1
To use the default domain (and avoid using DOMAIN\user to login) append the following line to /etc/samba/lwiauthd.conf
winbind use default domain = yes
==============================================================

Authenticating with likewise-open 5.1 (from Ubuntu 9.04 repository)

1. Install likewise-open5
# sudo apt-get install likewise-open5

2. Join the domain
# sudo domainjoin-cli join your.fqdn domain_admin
For example:
# sudo domainjoin-cli join example.com Administrator

REBOOT

3. Update rc.d
# sudo update-rc.d likewise-open defaults

4. Start likewise-open
# sudo /etc/init.d/lsassd start

Using the default domain with likewise-open 5.1
To use the default domain (and avoid using DOMAIN\user to login) uncomment the following line in /etc/likewise-open5/lsassd.conf
assume-default-domain = yes
==============================================================

Giving domain administrators sudo privileges
Append the following line to /etc/sudoers
%your.fdqn\\domain^admins ALL=(ALL) ALL

==============================================================
Known issues
1. After rebooting the computer and logging in you are given the error “Domain Controller unreachable, using cached credentials instead. Network resource may be unavailable.” Likewise does not start correctly. You have to login as a local admin and run the following command and then users will be able to login.
# sudo /etc/init.d/likewise-open restart
Issue seems to be resolved with likewise-open5

2. If you are having issues authenticating wirelessly, make sure your wireless connection is established. In many instances, wireless will only connect AFTER you login.

3. Samba does not hide hidden windows shares

Multiple Firefox Profiles

29. June 2009

No Comments »

Whether you are sharing a computer with a roommate or are afraid you will screw something up while developing a Firefox extension – it is a good idea to have multiple Firefox profiles. I use one profile for general browsing, another while I’m doing web development, and another while I am doing Firefox development. Each profile has a different set of favorites and extensions installed on it. Each profile is setup for it’s particular task. Creating a profile is simple.

1. Close out of all Firefox windows
2. Open up a command prompt and type

“C:\Program Files\Mozilla Firefox\firefox.exe” –profilemanager

1_cmd
3. This will start the Firefox profile manager. Click “Create Profile…”
2_profilemanager
4. This will start the profile wizard. Click the Next button.
3_profilewizard
5. Enter your profile name. I will be using “dev” for development.
4_profilewizard
6. Your profile has been created.
5_profilemanager
7. Now you can create a shortcut on your desktop that will open up Firefox using this profile. For the item location, use:

“C:\Program Files\Mozilla Firefox\firefox.exe” -P “dev”

The -P selects the profile “dev.” Replace dev with the value you used in step 5.

Note: Only one profile can be open at a time. That is, if you open Firefox using your default profile, then click on the newly created shortcut – Firefox will open using your default profile.