LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-25-2008, 11:30 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Joining a Domain


I have a machine that came from another network and now needs to be a member of our domain here in the office. Someone asked me how we make this Debian machine a member of the domain and I simply drew a blank. I have always made the machine a member of the domain when I configure the hostname during the installation. The next question after you set the host name is to always select a domain.

How would one join a rogue Linux PC to a domain?
 
Old 07-25-2008, 06:25 PM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 62
Domains and now Active Directory are Windows networking concepts. Unix/Linux systems don't natively understand those protocols. To make them work in Windows networking, you use Samba. Install Samba, and configure it to be a Domain client.

There are plenty of HowTos and pointers here in the forums. If you need more help, ask.
 
Old 07-26-2008, 07:06 AM   #3
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,414
Blog Entries: 1

Rep: Reputation: 65
I known the command "net rpc join ...." is used on a linux client to join itself to a domain, and, on the samba server side, the parameter "add machine script = " on smb.conf is used to complete the process.

I can't give you more details, 'cauze I never had this need, but I am very interested if you figure out how.

The command "net" is part of package "samba-common" on a fedora 9.

cheers
 
Old 07-26-2008, 07:16 PM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
If this wasn't a windows domain question but actually on about setting the FQDN (computer.domain.com) after an install, this section of 'man hostname' is what you're looking for -

Code:
 THE FQDN
       You  can’t  change the FQDN (as returned by hostname --fqdn) or the DNS
       domain name (as returned by dnsdomainname) with this command. The  FQDN
       of  the  system  is  the name that the resolver(3) returns for the host
       name.

       Technically: The FQDN is the name gethostbyname(2) returns for the host
       name returned by gethostname(2).  The DNS domain name is the part after
       the first dot.

       Therefore it depends on the configuration (usually  in  /etc/host.conf)
       how  you can change it. Usually (if the hosts file is parsed before DNS
       or NIS) you can change it in /etc/hosts.
And also in the same man page -

Code:
-f, --fqdn, --long
              Display the FQDN (Fully Qualified Domain Name). A FQDN  consists
              of  a  short  host  name and the DNS domain name. Unless you are
              using bind or NIS for host lookups you can change the  FQDN  and
              the  DNS  domain  name  (which  is  part  of  the  FQDN)  in the
              /etc/hosts file.
Peace,
JimBass
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Joining a linux machine to a windows domain having a wndows 2003 as domain contoller sukalyan_g SUSE / openSUSE 1 03-28-2008 01:31 AM
joining a domain jvan Linux - Newbie 1 01-09-2008 07:56 AM
joining to a domain issey Ubuntu 2 01-27-2006 06:44 AM
joining a domain bjbrochu Mandriva 7 01-27-2004 06:13 AM
Joining a machine from another domain to my linux samba domain acummins Linux - Networking 0 09-13-2003 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration