300-300 practice question 4 of 15

Given a proper network and name resolution setup, which of the following commands establishes a trust between a FreeIPA domain and an Active Directory domain?

Full set: 53 questions
Answer options
A: trustmanager add --domain ad://addom --user Administrator -w
B: ipa-ad --add-trust --account ADDOM\Administrator --query-password
C: net ad ipajoin addom -U Administrator -p
D: ipa trust-add --type ad addom --admin Administrator --password Correct answer
E: ipa ad join addom -U Administrator -W
Correct Answer:
D. ipa trust-add --type ad addom --admin Administrator --password
Explanation

The ipa command is the primary command-line tool for administering a FreeIPA domain. To establish a trust relationship with an Active Directory (AD) domain, the ipa trust-add command is used. The --type ad option specifies the trust is with Active Directory. The command requires the AD domain name (addom in this case) and credentials for an AD administrator account with privileges to create the trust object in AD, provided via the --admin and --password options. This command configures both sides of the trust relationship.

Why Incorrect

A. trustmanager is not a standard command-line utility within the FreeIPA suite for managing domain trusts.
B. ipa-ad is not a valid FreeIPA command. All primary management functions are handled through the ipa command.
C. net ad is a command from the Samba suite, used for managing a machine's membership in an AD domain, not for establishing a FreeIPA-AD trust.
E. ipa ad join is not a valid subcommand. The correct subcommand for creating a trust is trust-add.

References

1. Red Hat Identity Management Documentation (Official Vendor Documentation): In the guide for integrating with Active Directory, the command to establish a trust is explicitly defined.

Source: Red Hat Enterprise Linux 8 Documentation, "Chapter 4. Setting up an IdM-AD trust", Section 4.3. "Establishing a trust with Active Directory using the IdM CLI".

Content: The documentation states: "To establish a trust with Active Directory using the IdM CLI, use the ipa trust-add command." It provides the syntax: ipa trust-add [ADdomain] --type=ad --admin [ADadmin] --password.

2. FreeIPA Official Documentation (Official Vendor Documentation): The FreeIPA project's own documentation details the command and its usage for creating trusts with Active Directory.

Source: FreeIPA.org, "IPA AD Trust Setup".

Content: The guide outlines the steps for setting up a trust, specifying the use of ipa trust-add ad.example.com --admin Administrator --password to create the trust relationship from the FreeIPA master.

3. University of Cambridge, University Information Services (University Courseware/Documentation): Documentation for their own identity management systems often reflects standard practices.

Source: University of Cambridge, UIS Documentation, "IPA/Active Directory trusts".

Content: The documentation describes the process and commands for creating a trust, showing the use of ipa trust-add as the standard method. This demonstrates the command's application in a real-world, reputable institutional setting.

Scroll to Top