≡ Menu

How do I join a Windows 2003 Active Directory domain from Linux system?

Recently I was working on small project with a new company. They are Microsoft only shop. Finally, Linux made entry into their shop.

These days Linux is more common in enterprises. Since Linux systems were limited (as compare to number of windows boxes) they don’t want new set of administration tools and additional user accounts i.e. they want to use Windows 2003 Active Directory domain from Linux system.

First you need to configure both Samba (smb.conf) and MIT Kerberos (krb5.conf) services. Next type the following command:

# net ads join –UAdministrator

You will be prompted for domain admin password. Above single command is use to join Active Directory domain from Linux system. It should work with FreeBSD system too.

See also:

Share this on:

Your support makes a big difference:
I have a small favor to ask. More people are reading the nixCraft. Many of you block advertising which is your right, and advertising revenues are not sufficient to cover my operating costs. So you can see why I need to ask for your help. The nixCraft, takes a lot of my time and hard work to produce. If you use nixCraft, who likes it, helps me with donations:
Become a Supporter →    Make a contribution via Paypal/Bitcoin →   

Don't Miss Any Linux and Unix Tips

Get nixCraft in your inbox. It's free:

{ 3 comments… add one }
  • Richard Nyanzi January 10, 2008, 6:14 pm

    This is great… quite a number a variety of issues.please include more security related issues.

  • Thad October 2, 2008, 4:21 am

    From Ubuntu 8.04 (but will work on other distros)

    Add application Likewise.
    Fill in blanks.


  • Jake S. July 8, 2013, 4:02 am

    You should also point folks to the free Centrify Express (http://www.centrify.com/express), it worked well for me to join Linux/Mac/UNIX to AD, plus it also supports mobile and SaaS, so it goes beyond Linux vis a vis tying in disparate systems/apps into a Microsoft-centric shop.

Security: Are you a robot or human?

Leave a Comment