Adding Ubuntu 11 to Windows 2008 R2 Domain

I found this video on youtube that had a great tutorial that made adding a ubuntu machine to 2008 domain a snap.

Step 1: install likewise add to domain

From the Ubuntu terminal perform the following tasks. Note replace ad.joznet.com with your domain name.

  • sudo apt-get install likewise-open5
  • sudo domainjoin-cli join ad.joznet.com administrator
  • sudo reboot

From there you can verify the machine is part of the domain by in to the domain controller and checking under computers (Figure 1)

Step 2: Modify samba to allow domain login

  • sudo apt-get install samba (not sure if this is required)
  • sudo nano /etc/samba/lwiauthd.conf
      • winbind use default domain = yes
  • sudo reboot
Samba authentication

Step 3: Modify super user doer file

  • sudo nano /etc/sudoers
  • add the under under ‘#Allow members of group sudo to execute any command’
    • %ad.joznet.com\domain^admins ALL=(ALL) ALL

Step 4: Login as domain user now

  • “Other user”
    • administrator@ad.joznet.com

[youtube]http://www.youtube.com/watch?v=uwdlhrqy33Y[/youtube]

One Reply to “Adding Ubuntu 11 to Windows 2008 R2 Domain”

  1. This is also available for other distros
    http://www.beyondtrust.com/Technical-Support/Downloads/PowerBroker-Identity-Services-Open-Edition/

    For Centos 5.7 64 bit (others available at above link)
    Switch SELinux to permissive
    From root terminal

    wget http://www.beyondtrust.com/Technical-Support/Downloads/files/PBISO/6.1/8729/LikewiseOpen-6.1.0.8729-linux-x86_64-rpm.sh

    sh LikewiseOpen-6.1.0.8729-linux-x86_64-rpm.sh

    Then complete the Step2 and Step3 from above.

Leave a Reply