ipa-adtrust-install(1)
π ipa-adtrust-install(1) π
okay bestie, welcome to the IPA Manual Pages glow-up π
today we're talking about ipa-adtrust-install, the little command that gets your IPA server ready to make friends with Active Directory. grab a strawberry π and let's go.
β¨ NAME β¨
ipa-adtrust-install β get an IPA server set up so it can establish trust relationships with AD domains π«Ά
β¨ SYNOPSIS β¨
ipa-adtrust-install [OPTION]...
β¨ DESCRIPTION β¨
So what does it do? It adds all the necessary objects and configuration so that an IPA server can create a trust to an Active Directory domain. Iconic. But heads up β this requires that the IPA server is already installed and configured. It's a glow-up, not a from-scratch build. π
Also, real talk: you will not be able to establish a trust to an Active Directory domain unless the realm name of the IPA server matches its domain name. that's the vibe check, and it is non-negotiable. π
Good news though: ipa-adtrust-install can be run multiple times to reinstall deleted objects or broken configuration files. Like, say, a fresh samba configuration (smb.conf) file and registry based configuration can be created. β¨ But some other items β like the configuration of the local range β cannot be changed by running ipa-adtrust-install a second time, because changing stuff there might affect other objects too. so basically: reruns are for repairs, not for remixes. π
π₯ Firewall Requirements π₯
On top of the normal IPA server firewall requirements, ipa-adtrust-install needs these ports open so IPA and Active Directory can actually talk to each other:
TCP Ports
135/tcpEPMAP445/tcpMicrosoft-DS1024/tcpthrough1300/tcpβ this range lets EPMAP on port135/tcpcreate a TCP listener based on an incoming request.3268/tcpMicrosoft-GC
UDP Ports
389/udpLDAP
β¨ OPTIONS β¨
-d,--debugβ turns on debug logging when you need that extra verbose output, iykyk π--netbios-name=NETBIOS_NAMEβ the NetBIOS name for the IPA domain. If you don't hand one over, it gets determined based on the leading component of the DNS domain name. Runningipa-adtrust-installa second time with a different NetBIOS name will change the name β and psst, changing the NetBIOS name might break existing trust relationships to other domains. β οΈ careful queen.--add-sidsβ adds SIDs to existing users and groups as one of the final steps of theipa-adtrust-installrun. Now listen: if there are a many existing users and groups and a couple of replicas in the environment, this operation might lead to a high replication traffic and a performance degradation of all IPA servers in the environment. π To avoid this, the SID generation can be run afteripa-adtrust-installis run and scheduled independently. To start this task you have to load an edited version ofipa-sidgen-task-run.ldifwith theldapmodifycommand info the directory server.--add-agentsβ adds IPA masters to the list that allows them to serve information about users from trusted forests. Starting with IPA 4.2, a regular IPA master can provide this information to SSSD clients. IPA masters aren't added to the list automatically though, because a restart of the LDAP service on each of them is required. The host whereipa-adtrust-installis being run gets added automatically. π«Ά
Note that IPA masters where ipa-adtrust-install wasn't run can serve information about users from trusted forests only if they are enabled via ipa-adtrust-install run on any other IPA master. And at least SSSD version 1.13 on the IPA master is required to be able to perform as a trust agent. no shortcuts bestie β¨
-U,--unattendedβ an unattended installation that will never prompt for user input. set it and forget it, main character energy π--rid-base=RID_BASEβ first RID value of the local domain. The first POSIX ID of the local domain will be assigned to this RID, the second to RID+1, etc. See the online help of theidrangeCLI for details. π’--secondary-rid-base=SECONDARY_RID_BASEβ start value of the secondary RID range, which is only used in the case a user and a group share numerically the same POSIX ID. See the online help of theidrangeCLI for details. π-A,--admin-name=ADMIN_NAMEβ the name of the user with administrative privileges for this IPA server. Defaults to'admin'. π-a,--admin-password=passwordβ the password of the user with administrative privileges for this IPA server. Will be asked interactively if-Uis not specified. π
The credentials of the admin user will be used to obtain a Kerberos ticket before configuring cross-realm trusts support, and afterwards, to ensure that the ticket contains MS-PAC information required to actually add a trust with an Active Directory domain via the ipa trust-add --type=ad command. ποΈ
--enable-compatβ enables support for trusted domains users for old clients through the Schema Compatibility plugin. SSSD supports trusted domains natively starting with version 1.9, so for platforms that lack SSSD or run an older SSSD version, one needs to use this option. When enabled, theslapi-nispackage needs to be installed andschema-compat-pluginwill be configured to provide lookup of users and groups from trusted domains via SSSD on the IPA server. These users and groups will be available undercn=users,cn=compat,$SUFFIXandcn=groups,cn=compat,$SUFFIXtrees. SSSD will normalize names of users and groups to lower case. πΈ
In addition to providing these users and groups through the compat tree, this option enables authentication over LDAP for trusted domain users with DN under the compat tree, i.e. using bind DN uid=administrator@ad.domain,cn=users,cn=compat,$SUFFIX. π
LDAP authentication performed by the compat tree is done via PAM 'system-auth' service. This service exists by default on Linux systems and is provided by the pam package as /etc/pam.d/system-auth. If your IPA install does not have the default HBAC rule 'allow_all' enabled, then make sure to define in IPA a special service called 'system-auth' and create an HBAC rule to allow access to anyone to this rule on IPA masters. β οΈ
As the 'system-auth' PAM service is not used directly by any other application, it is safe to use it for trusted domain users via the compatibility path. β
β¨ EXIT STATUS β¨
0if the installation was successful π slay!1if an error occurred π we've all been there
and that's the whole page, bestie β no notes, you ate. π¦
this was brought to you by the IPA manual, dated April 11 2017, from ipa-adtrust-install(1) in the IPA Manual Pages set. go forth and trust some forests responsibly. ππΈπ
π¦ where this page comes from
- centos-stream 10: ipa-server-trust-ad 4.13.4-1.el10 Β· GPL-3.0-or-later
- centos-stream 9: ipa-server-trust-ad 4.13.4-1.el9 Β· GPL-3.0-or-later
- fedora 43: freeipa-server-trust-ad 4.13.4-2.fc43
- fedora 43: freeipa-server-trust-ad 4.13.4-3.fc43 Β· GPL-3.0-or-later
- fedora 44: freeipa-server-trust-ad 4.13.4-2.fc44
- fedora 44: freeipa-server-trust-ad 4.13.4-3.fc44 Β· GPL-3.0-or-later
- Copyright (C) 2011 Red Hat, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms