LFCS · Question #585
Which command would create a machine account in Active Directory under the Computers\BusinessUnit\Department\Servers organizational unit?
The correct answer is D. net ads join "Computers\BusinessUnit\Department\Servers". The net ads join command is used to join a Samba machine to an Active Directory domain, and specifying an Organizational Unit (OU) allows placing the machine account in a specific location.
Question
Options
- Anet rpc join -m localhost -
- Brpcclient -c "join Computers\BusinessUnit\Department\Servers"
- Cnet ads join ou="Computers\BusinessUnit\Department\Servers"
- Dnet ads join "Computers\BusinessUnit\Department\Servers"
How the community answered
(37 responses)- B5% (2)
- C3% (1)
- D92% (34)
Why each option
The `net ads join` command is used to join a Samba machine to an Active Directory domain, and specifying an Organizational Unit (OU) allows placing the machine account in a specific location.
`net rpc join` is typically used for joining NT4-style domains, not Active Directory.
`rpcclient` is a debugging and administrative tool for NetBIOS over TCP/IP, not for performing a domain join operation.
The `ou=` syntax is not the standard way to specify an OU directly as an argument to `net ads join`; the `--organizational-unit` option with a full DN is typically used.
The `net ads join` command is the appropriate utility for integrating a Samba server into an Active Directory domain, which involves creating a machine account. While the most precise way to specify an Organizational Unit is using the `--organizational-unit` flag with a full Distinguished Name, option D utilizes the correct `net ads join` command and attempts to specify the desired OU path, making it the most suitable choice among the given options for the intent of creating the account in that location.
Concept tested: Samba Active Directory domain join with OU
Source: https://www.samba.org/samba/docs/current/manpages/net.8.html
Topics
Community Discussion
No community discussion yet for this question.