FreeIPA Active Directory trust setup

A cross-forest trust lets Active Directory users sign in to Linux hosts under FreeIPA policy without copying accounts. This page covers the DNS, trust, ID mapping and verification decisions.

On this page

Why teams set up a FreeIPA Active Directory trust

A cross-forest trust with Samba-based components lets AD users authenticate against FreeIPA, so Linux hosts enrolled in FreeIPA can apply FreeIPA host access and sudo policy to Windows identities that stay in Active Directory. Teams usually reach for this when Windows identities live in AD, Linux hosts need FreeIPA policy, and copying accounts into a second directory creates drift. Passwords change in one place and not the other, disabled users linger in FreeIPA, and group membership falls out of sync within weeks. The trust keeps AD as the source of truth for Windows users while FreeIPA holds the policy that governs the Linux estate.

The work is harder than it looks because the naming plan has to be settled before anything is installed. The IPA DNS domain must not overlap any domain in the AD forest, so the team needs a complete list of AD domains, including child domains and any names likely to be added later. Changing the IPA domain after enrollment is a rebuild, not a setting. Ask your AD administrators for the full forest domain list in writing, then check the planned IPA domain against every entry before the first server is built.

ID mapping is the second decision that is easy to underestimate. Linux needs a UID and GID for every AD user and group that logs in, and those numbers decide file ownership, group-based sudo and HBAC matches, and how user data is laid out on shared storage. Decide the ID range and mapping approach with the Linux platform owners before the first login, because changing the numbers later means re-owning files. The ID view and ID range settings that shape this are covered in the FreeIPA customization topic, so the design review should reference that work early.

The trust also touches four systems at once: DNS, Kerberos, time and certificates. A fault in any one of them usually appears as a generic login failure somewhere else, which makes troubleshooting slow. Confirm that name resolution works in both directions across the trust, that Kerberos realms and ticket exchange behave the same on both sides, that clocks are synchronized, and that the certificate chains the trust depends on are valid and monitored. Write these checks into a test plan with a named owner for each, and run the plan again after any change to DNS or certificates.

This topic covers setting up a trust. It does not move accounts. Users, groups and their passwords stay in AD, and FreeIPA authenticates them through the trust. If your goal is to move existing identities out of OpenLDAP, NIS or another FreeIPA domain, that is a separate project described in the FreeIPA migration topic. Login methods such as Kerberos tickets for hosts and services, OTP, and pairing FreeIPA with web identity providers are covered in the FreeIPA SSO and identity integration topic. Keep the scope of the trust clear in the statement of work so that migration and single sign-on tasks are not absorbed into it.

Components involved in the FreeIPA AD trust

FreeIPA combines several open-source components into one identity service, and the Active Directory trust is built on Samba components that sit alongside them. Before building, teams need to know which component owns which job, because DNS layout, ID mapping and client configuration all depend on how these pieces connect.

FreeIPA server and 389 Directory Server

The FreeIPA server is the integrating layer, and its directory store is 389 Directory Server, a multi-master LDAPv3 directory that holds users, groups, hosts and policies. Trust objects and ID ranges are written into this directory, so replication health affects every domain controller and client. Check how many replicas you plan to run per datacenter and confirm that the trust configuration is replicated before you rely on it at a second site.

MIT Kerberos KDC and Dogtag CA

The MIT Kerberos KDC issues the tickets that give users single sign-on across Linux hosts, and the trust extends this Kerberos realm to Active Directory principals. Certificates come from the integrated Dogtag certificate authority, which matters if you issue host or service certificates that AD-joined systems must trust. Confirm which replica holds the renewal and CRL role before you plan maintenance windows.

ISC BIND DNS where used

FreeIPA can run ISC BIND as its DNS service, and DNS is where an AD trust most often fails. The IPA domain must use a DNS name that does not overlap with any domain in the AD forest, so zone delegation and forwarding must be designed before the trust is created. Decide whether FreeIPA serves DNS for the IPA zone or only resolves it, and confirm that clients receive at least two DNS servers.

Samba components for the trust

The cross-forest trust with Active Directory is established through Samba components, which handle the trust secret, the cross-realm Kerberos relationship and the lookup of AD users and groups. These components are installed and maintained on the FreeIPA servers, so their package versions and OS lifecycle become part of your upgrade plan. Ask which Samba packages your target OS provides and whether they match the FreeIPA release you intend to run.

AD forest and its DNS zones

The Active Directory forest keeps its own users, groups and DNS zones, and FreeIPA must be able to resolve the AD domain controllers and their SRV records. Forest and domain names, functional levels and DNS forwarding rules all come from the AD side, so the AD team needs to approve changes. Ask for the list of AD domains that will be trusted and for read access to the DNS records that FreeIPA will query.

SSSD on Linux clients and ID mapping

SSSD runs on each Linux client and resolves AD users to local POSIX identities, which is where ID mapping takes effect. Clients need the FreeIPA domain configured in sssd.conf so that trusted AD accounts can log in and receive group membership. Test a login from one enrolled host before you change client configuration across the fleet, and confirm which SSSD version your OS ships.

ID ranges and ID views

ID range objects assign UID and GID blocks to the AD domain so that each AD SID maps to a stable POSIX number, and ID views let you override attributes such as login name or home directory for specific hosts. Overlapping ranges or changed mappings after users have logged in can change file ownership, so plan the ranges before the first trusted login. Review the ID range layout with your storage and automation owners and record which views apply to which hosts.

Decisions to settle before the trust is created

This table compares the main design choices for a FreeIPA to Active Directory cross-forest trust, with the situations where each option fits and what it means for daily operations. Read each row as a decision to close with your AD and Linux teams before any Samba trust component is configured. The main takeaway is that the domain naming and DNS decisions are hard to reverse, so they deserve the most review time.

DecisionOptionTrade-off and operational costWhen it fits
IPA domain namingNew DNS domain that does not overlap any AD domainRequired for a trust. Needs a DNS zone plan and client resolver changes, but keeps AD and IPA names separate for routing and support.Most environments with an existing AD forest that must trust FreeIPA
IPA domain namingReuse an existing DNS nameRuled out where it overlaps an AD domain, as the Trusts page requires non-overlapping names. Confirm any other naming conflict in your own DNS before deciding.Only where the name overlaps no domain in the AD forest, which should be verified in your DNS
Trust directionOne-way trust (AD trusts IPA users)Narrower exposure: AD users can reach IPA resources, while IPA does not read AD. Fewer rules to maintain, but limited if IPA needs to query AD groups.When Linux hosts only need to authorize AD users and nothing in IPA must be exposed to AD
Trust directionTwo-way trustBoth forests trust each other, so access rules must be reviewed on both sides. Expect more policy review and a larger audit surface.When AD administrators also need to query or manage IPA objects across the trust
ID mappingAutomatic ID rangesLower planning effort. Confirm the range allocation behaviour in the version you run, and check it against your existing UID and GID usage.When there is no existing UID or GID scheme that must be preserved
ID mappingHand-planned ID rangeMore planning and documentation, with a written allocation that avoids overlap with local, LDAP and other trusted UIDs. Easier to explain to auditors and to keep stable.When AD users already have POSIX numbers or when Linux file ownership must stay predictable
Trust agent placementDedicated IPA replicasKeeps trust components off servers that hold CA or DNS duties, which simplifies patching and change control. Requires extra hosts and their lifecycle.When trust traffic and AD lookups must be isolated from other IPA roles
Trust agent placementShared IPA serversFewer hosts, but trust components compete with other IPA roles for the same patch windows. The deployment recommendations advise dedicated servers without other applications.Small test or lab deployments where a separate host is not justified
POSIX attributes sourceAD provides UID, GID and shellKeeps attributes managed in AD, with less data in IPA. Confirm each attribute your hosts need is populated in AD for every user who logs in.When AD is the authoritative source for Linux attributes
POSIX attributes sourceFreeIPA ID views override attributesIPA controls the Linux view per host group, which keeps one place to manage login identity. Requires maintaining ID view overrides and testing them against each host set.When Linux attributes must differ by host or team, or AD attributes are incomplete
DNS forwarding to ADFreeIPA DNS forwards to AD DNSCentral configuration in IPA, with forwarders to maintain when AD DNS changes. Confirm which zones forward and that clients use IPA resolvers.When IPA DNS is already the resolver for Linux clients
DNS forwarding to ADExisting infrastructure handles forwardingUses current DNS platforms, but resolution of AD names depends on those systems being correct. Each change must be coordinated with the DNS owner.When corporate DNS already resolves AD zones for every Linux network segment

How to build the trust, step by step

This sequence connects FreeIPA to Active Directory through a cross-forest trust, so AD users can sign in to Linux hosts under FreeIPA policy. Each step closes with a check, so you know the trust is sound before you widen access.

  1. Inventory AD forests, domains and DNS zones

    Write down every AD forest and domain you intend to trust, along with the DNS zones each domain serves and the domain controllers that host them. Your AD team or the directory owner should confirm this list, since it sets the naming constraints for the IPA domain. Done means you have a signed-off inventory showing each forest, its domains, its DNS zones and its domain controllers, with the owner of each named.

  2. Confirm the IPA domain does not overlap AD

    The FreeIPA domain must use a DNS domain that does not overlap with any domain in the AD forest. Compare the planned IPA domain name against every AD domain and zone from the inventory, including child domains and any delegated zones. Done means you have a written comparison showing no overlap. If the planned name collides with an AD domain, change the IPA domain name before any server is installed, because renaming it later is far harder.

  3. Verify DNS and time sources in both directions

    Test name resolution from the planned FreeIPA servers to AD domain controllers and from AD to the FreeIPA servers, for forward and reverse lookups of the service records. Confirm that the time sources used by Kerberos are synchronized on both sides, because Kerberos rejects tickets when clocks drift. Done means both directions resolve correctly for every planned host and the time offset between the systems is within the tolerance your Kerberos configuration requires. Confirm the tolerance on the Trusts page and your OS documentation.

  4. Prepare dedicated FreeIPA servers and replicas

    Build the FreeIPA servers that will host the trust components on dedicated hosts, following the deployment recommendations: no other applications on these servers, at least two to three replicas in each datacenter, and at least one replica per datacenter running DNS or PKI where those services are used. Patch the operating system and confirm the packages come from a supported repository. Done means each server passes a basic health check, replicas are reachable from each other, and the server roles are recorded in your design document.

  5. Install the Samba trust components

    On the prepared FreeIPA servers, install the Samba-based trust components that FreeIPA uses for cross-forest trusts. Install them on the servers designated for trust, and confirm the package versions match the FreeIPA release you run. Use the Trusts page for your version to get the exact package set and commands. Done means the packages install cleanly on every designated server and the services start without errors in the logs.

  6. Establish the trust with a privileged AD account

    Create the trust from FreeIPA using an AD account that holds the rights the Trusts page requires for establishing a trust. Use a named account with the minimum rights needed, and record who owns it and when it is used. Confirm the exact command and the required rights for your version before running it. Done means the trust shows as established on the FreeIPA side and the AD side reports the matching trust, with both sides agreeing on the trust direction and type.

  7. Configure ID ranges and ID views

    Define the ID ranges that map AD security identifiers to POSIX UIDs and GIDs, and create the ID views that control how AD users appear on Linux hosts. Check that the ranges do not overlap each other or existing local ranges. If you find an ID range problem after the fact, the ipa-idrange-fix tool introduced in the 4.13.0 release notes is a repair option, but confirm it is supported for your installed version before using it. Done means the ranges list without overlap and a lookup of a known AD user returns the expected UID, GID and home directory.

  8. Test one AD login through SSSD, then widen

    Pick one Linux host enrolled as a FreeIPA client, configured with SSSD, and sign in as a single AD user. Confirm the Kerberos ticket is issued, the user resolves with the expected identity, and the host access policy applies. Once that test passes, extend access to the first host group, then to further groups in stages, checking each group before the next. Done means one AD user logs in successfully on one host, then each host group repeats the same check, and every result is recorded.

How ID mapping and ID views decide what AD users look like on Linux

A cross-forest trust lets Active Directory users authenticate to FreeIPA, but it does not give a Linux host a usable account. Linux needs a numeric UID, a primary GID, a home directory, a login shell and a name that the host can resolve. Active Directory identifies users by security identifiers (SIDs), which are not POSIX numbers. FreeIPA therefore has to translate each SID into a UID and GID before SSSD on a client can present the user to PAM, the login stack and file ownership checks. Until that translation is defined, a trusted AD user may authenticate successfully and still have no working session on the host.

The translation is driven by ID ranges. For a trust, FreeIPA assigns a range of UIDs and GIDs to the trusted domain, and SIDs from that domain are mapped into the range by the ID mapping layer. Confirm the range size and the assigned base before go-live, because the range is the contract between the two directories. Overlapping or reused ranges are the main risk. If a range collides with local POSIX accounts, with another trusted domain, or with a range already used by a different FreeIPA deployment, two different people can end up with the same numeric UID. File ownership, quotas and audit trails then point to the wrong person, and the error often appears only after files have been written. Check existing ranges with the ID range tooling and the ipa-idrange-fix utility, and plan remediation before users log in, not after.

ID views let administrators override the attributes that SSSD returns for a user on specific hosts or host groups. Typical overrides include the home directory, the login shell and, where the environment requires it, the login name shown on that host. A view can be applied to a host group, so a legacy server can keep an existing home directory layout while newer hosts use the default. Overrides are a presentation layer. They change what a host shows for an account, but they do not change the underlying SID or the identity stored in the directory. Decide early which attributes truly need per-host differences, because every override is one more thing to test and to explain when a user reports a different home directory on a different machine.

ID views are applied per host through SSSD, so the effective result depends on the host's enrollment and its SSSD configuration. Verify the result on a representative host from each host group with the SSSD lookup tools, and confirm that the cache is refreshed after a view change. Remember that a correct identity does not grant access. HBAC rules still decide which trusted users may log in to which hosts, and sudo rules decide what they may run once inside. An AD user who appears with the right UID and shell can still be denied at the PAM layer. Test identity and access as two separate steps.

Attribute extensions, such as adding custom user attributes or changing the object classes used for trusted users, are covered in the FreeIPA customization topic and are not repeated here. Read that topic before you change any attribute that ID views depend on, so that mapping, views and extensions are designed together rather than adjusted one after another.

What drives the effort and cost of the AD trust

This table lists the factors that change how much work an AD trust takes and how often that work comes back. Read each row as a driver, then check the one-time or recurring column to see whether it adds to the initial project or to ongoing operations. The main takeaway is that DNS separation, existing UID and GID assignments and the replica topology should be settled before anyone creates the trust.

DriverWhy it changes effort or costHow to keep it downOne-time or recurring
AD forests, domains and sitesEach AD forest or domain in scope needs its own trust path and name resolution checks. Sites that are separated by links or firewalls add connectivity and testing work.Confirm which forests and domains need access before design starts. Limit the trust to the forest that holds the users who need Linux access.One-time for the trust, recurring when AD topology changes
DNS complexityThe IPA DNS domain must not overlap with any AD forest domain. Split-horizon resolution or conditional forwarding rules require careful testing on every client and server.Choose a non-overlapping IPA DNS domain early. Document which zones each resolver answers and keep forwarding rules in one reviewed place.One-time for design, recurring when zones or resolvers change
Linux hosts and host groupsEach host group that needs different ID view overrides adds settings to design, test and roll out. More hosts also mean more SSSD client checks.Group hosts by access need before building ID views. Keep the number of distinct override sets small and reuse them across host groups.One-time for ID view design, recurring for new hosts
ID ranges and existing UID or GID assignmentsExisting UID or GID values on Linux systems or in AD must be mapped without collisions. Conflicts found late force rework of ID views and file ownership checks.Inventory current UID and GID assignments in both directories before creating ID ranges. Plan ranges that preserve existing values where they must stay stable.One-time for range planning and checks
Existing FreeIPA topologyThe trust components run on IPA servers. If the current deployment has one server or replicas that do not meet the recommended layout, replicas may need to be added before the trust is created.Review replica count and placement against the deployment recommendations first. Add replicas in a separate change so the trust work is not blocked by topology gaps.One-time for topology changes, recurring for replica maintenance
Change control and maintenance windowsChanges to DNS, trust settings and authentication affect sign-in for many users. Approval cycles and fixed windows set the pace of testing and rollout.Agree the change plan, rollback steps and test accounts with the change board at the start. Bundle low-risk steps into the same window.Recurring for every change, including patch cycles
Compliance evidence needsAssessors may ask for records of trust configuration, ID view settings, access rules and test results. Producing this evidence adds documentation and review time.Ask the assessor which records they expect and capture them during the work, not after. Store configuration exports and test results with the change record.One-time for initial evidence, recurring for periodic review
Backup and restore testingBackups must include the state needed to restore identity services. The trust state should be included in restore tests, and an outdated restore can break replication.Run backup and restore tests after the trust is in place and repeat them after major changes. Confirm the restore procedure with the platform team.One-time for first test, recurring for patch and topology changes

Security controls for the trust

A cross-forest trust gives Active Directory users a path onto your Linux hosts, so the controls that matter most sit at the trust boundary: the FreeIPA servers, the AD account that builds the trust, the access rules that decide who gets in, and the data that rebuilds it. Each control below can be checked in your own environment before and after go-live.

Dedicated and patched FreeIPA servers

Run the FreeIPA servers as dedicated hosts that run no other applications, and track the release line closely. FreeIPA 4.13.4, dated July 9, 2026, fixed two CVEs, including LDAP access control flaws that could let unauthenticated clients obtain credentials, and hardened authentication checks across the API. Confirm your servers run 4.13.4 or later and that you have a schedule for applying future security releases to every replica.

Least privileged trust account

Establishing the trust requires an AD account with enough rights to create the trust, so grant only those rights and nothing broader. Record which people and service accounts hold this credential, when it was last used, and who approved it. Remove or disable it once the trust is established, and review the record on a fixed schedule and after staff changes.

HBAC rules instead of allow_all

Trusted AD users can reach any host that accepts their Kerberos identity unless host-based access control limits them. Replace the default allow_all rule with HBAC rules that name the AD groups allowed on each host group, and test each rule with a sign-in from a user in every group before rollout. Keep the list of AD groups short and documented, because each entry grants login rights across the matched hosts.

Review ID view overrides

ID views can override the attributes that AD users present on Linux hosts, including user IDs, group IDs, home directories and login shells. Review every override for privilege-sensitive values, such as a UID or GID that matches a local administrative account or a group ID that grants file access. Limit who can change ID views and record each change so overrides stay explainable during an audit.

Protected trust configuration and backups

Backups hold the trust configuration and the certificate material used by the CA, so store them with the same protection as the live servers. Keep backups encrypted, limit who can restore them, and use ipa-backup and ipa-restore only as documented. The FreeIPA backup documentation warns that restoring an outdated backup into an active replica topology can break replication, so confirm the restore procedure with your team before you need it.

DNS over TLS posture

FreeIPA 4.13.0 introduced DNS over TLS between clients and IdM DNS servers. If you use IdM DNS with the trust, check whether this feature applies to your clients and whether they are configured to use it. Confirm which clients still send DNS queries in plain text, because name resolution for AD domains and trust lookups depends on the same resolvers. Hardening detail is covered in the FreeIPA security hardening topic.

How to test the trust and confirm it fails safely

The test plan should prove three things before any AD user is allowed onto a production Linux host: the trust is healthy, identities resolve to the values you intended, and access is decided by FreeIPA policy rather than by accident. Run the checks in the same order every time, and write down what you ran, when, from which host, and what came back. That record is the evidence you will hand to your security team and, if needed, to an auditor. Start on the FreeIPA side by checking the trust status with the ipa trust-find and ipa trust-show commands, then confirm from the AD side that the trust object exists and is trusted in the expected direction. Both sides should agree on the trust state before you test anything else.

Next, test identity resolution on a Linux host enrolled in FreeIPA. Use getent passwd and getent group with a fully qualified AD user and group name, then confirm the UID, GID and home directory match the ID view and ID range you planned. A mismatch here usually means an ID view override is missing or the ID range was assigned in a different order than expected, so resolve this before moving on. Then authenticate as the AD user with kinit from the Linux host and check that a Kerberos ticket is issued and that an ssh login or su to a test account works where HBAC allows it. Record the ticket details and the SSSD log lines from the attempt, since those lines are your primary evidence for authentication flow.

Negative tests matter as much as positive ones. Confirm that an AD user without an allowed HBAC rule is denied on the target host, and that the denial is recorded in the logs with the rule that caused it. Then disable a test AD account, clear the SSSD cache for that user, and confirm that new logins fail. Repeat the check on a second FreeIPA replica to show that both replicas resolve the same identity and enforce the same policy. If the replicas disagree, stop and fix replication before continuing, because a split result means a host may accept a login that another host rejects. Confirm with your team which AD accounts are approved for these tests, and avoid using production administrator accounts.

Failure testing answers the question of what happens when the trust component or AD DNS is unavailable. Stop the trust-related service on one test replica, or block the path to AD DNS from a test host, then repeat a login that succeeded earlier. Cached credentials may still work for a limited period depending on your SSSD settings, so record the exact behavior rather than assuming it. Confirm that a previously denied user is still denied and that a disabled account is not accepted from cache. Check what the host logs and whether the failure produces a clear error. Restore the service and confirm that resolution and authentication return to normal without manual cache repair. Confirm the cache lifetime and offline behavior settings with your Linux and SSSD documentation before the test window.

Prepare a rollback step before you go live. Rollback should remove the ID view overrides that were applied to the AD trust and return hosts to the prior identity configuration, without deleting the trust itself. Keeping the trust in place means you can correct the override and retest without repeating the full trust setup. Test the rollback on a non-production replica, and confirm that after removal the affected AD users resolve with default values or stop resolving as you expect. Finally, store all test output, screenshots of the trust status, SSSD logs, and the rollback result in one controlled location with dates and operator names. Treat that evidence record as part of the deliverable, because it shows the trust was verified and that failure modes were understood before users depended on it.

What to monitor, back up and document after go-live

Once the trust works, the risk moves to day-two operations: the trust can break quietly through DNS, Kerberos or certificate changes, and a backup taken at the wrong moment can damage the replica topology. The cards below cover what to watch, how to back up the trust, how to plan changes, what to record, and which operational dependencies to track.

Monitor trust health

Check the state of the cross-forest trust on a schedule rather than only after a user complains. Confirm that the trust object is still valid, that the Samba trust components on the IdM side are running, and that AD users still resolve through the trust. Record the expected results of these checks so that a failed check can be compared with a known-good baseline during an incident.

Watch DNS resolution of AD zones

Clients and IdM servers must resolve the AD forest's DNS zones, and the IPA domain must stay separate from them. Test lookups for AD domain controllers, service records and user principal name suffixes from each IdM server and from representative Linux clients. A change to conditional forwarders or to the AD DNS layout is a common cause of trust failures that look like authentication problems.

Check Kerberos ticket issuance and SSSD errors

Watch the KDC for failed or unexpected ticket requests from AD principals, and review SSSD logs on enrolled clients for lookup or authentication errors tied to trusted users. Note which ID view applies to each host, because a host that falls back to a different mapping can show AD users with unexpected UIDs or no group membership. Set alerts on repeated failures for trusted accounts.

Back up FreeIPA and the trust configuration

Use ipa-backup on a schedule and keep the trust configuration inside the backup plan, including the Samba-related state the trust depends on. The backup documentation warns that restoring an outdated backup into an active replica topology can break replication, so restores must follow the documented procedure for the topology and must be rehearsed in a separate environment. Confirm with your own runbook which backup type you use for each server role.

Plan FreeIPA and Samba upgrades together

Treat upgrades of the FreeIPA version and the Samba components as a single joint change, because the trust depends on both. Test the combined version pair in a non-production environment that mirrors your AD trust configuration, then upgrade replicas one at a time. The sibling topic on FreeIPA upgrades and support covers the release cadence and the order of replica upgrades.

Document ID ranges, ID views and mappings

Record the ID range layout for the AD domain, the ID views applied to each host group, and the mapping of AD groups to host group access. Also record the AD account used to establish and maintain the trust, its permissions, and where its credentials are stored. Without this record, an administrator who inherits the environment cannot tell whether a UID conflict or a missing mapping is intended.

Track the first server's renewal and CRL role

By default the first FreeIPA server handles certificate renewal and CRL publication, so its availability and certificate state are operational dependencies for the whole topology. Add its certificate expiry dates and CRL publication status to your monitoring, and document who acts if that server is down. Confirm the current renewal behavior and any role transfer steps for your FreeIPA version before you change the server layout.

Questions teams ask before building the AD trust

Can our own team build the FreeIPA Active Directory trust without a partner?

Yes, a capable identity team can build a cross-forest trust in-house, because FreeIPA is GPL-3.0-or-later software with no license fee and the trust is documented on the FreeIPA Trusts page. The harder part is the surrounding work: the IPA domain must use a DNS domain that does not overlap with any domain in the AD forest, and the trust touches DNS, ID mapping, sudo and HBAC policy and, in many cases, production Linux hosts. Teams usually weigh whether they have people who have built a trust before, whether they can test it on a non-production host set, and whether they can absorb a rollback window. An outside partner is most useful when those gaps exist. Ask any partner to show how the work is split between your staff and theirs.

What drives the cost and effort of an AD trust project?

The main drivers are the shape of your AD forests, the number of Linux hosts that need AD users, how much ID mapping and access policy must be designed, and how many approvals each change needs. Cost splits into the people who design and build the trust, the people who test it against real accounts, and the internal time of your AD, DNS and Linux owners. Most of it is one-time, while ongoing upkeep, such as patching and monitoring, recurs. The effort table in this section shows how these drivers map to work, and the sibling FreeIPA implementation plan and cost topic explains how a fixed-scope deployment is phased. No figures are given here. Ask for a quote built from a written scope that names each driver.

How long does it take to set up an AD trust with FreeIPA?

The duration depends mainly on your AD topology, including how many forests and domains are in scope, and on your change control process, including how many review boards and change windows apply. Teams with a single forest and clear DNS ownership move faster than those with several forests, split DNS zones or strict freeze periods. Because the trust affects live authentication, testing and rollback planning often take as long as the build itself. DeployOpen works on fixed scope, so the timeline is agreed in writing before work starts, with the phases, dependencies and client actions listed. Ask for that written timeline and check which of your approvals sit on the critical path.

What do we need to provide for an AD trust engagement?

Plan to provide the following before work starts:

  • AD admin access sufficient to create the trust and review domain and forest settings
  • DNS control over the zones that must separate the IPA domain from the AD forest
  • A test host set of Linux machines that can join FreeIPA and sign in with AD users before production
  • Named owners for AD, DNS, Linux platform, security and change approval
  • Change windows agreed in advance for the cutover and for any rollback

The exact list depends on your scope and is confirmed in the written plan. Missing owners or windows are the most common reason a schedule slips, so name them early.

Does building the AD trust replace a migration to FreeIPA?

No. A cross-forest trust lets AD users authenticate to Linux hosts that are enrolled in FreeIPA, while the identities stay in Active Directory. A migration moves users, groups or policy into FreeIPA, which is a separate path with its own planning, validation and cutover. The sibling FreeIPA migration topic covers moving identities from OpenLDAP, NIS or another FreeIPA domain with ipa migrate-ds and ipa-migrate. Some organizations do both, but the trust does not decide whether a migration is needed. Decide the identity source for each user group before scoping the trust, so the two projects do not conflict.

Does DeployOpen issue compliance attestations for the trust?

No. DeployOpen does not issue audit reports, attestations or certifications. It can prepare systems, controls and evidence for a compliance assessment, such as configuration records, access policy documentation and test results for the trust. An independent auditor or certification body then assesses that evidence and decides the outcome. Ask your auditor early which evidence they expect, including how trust-related access rules and privileged accounts are recorded, so that the evidence is collected in the right form during the build.

Who owns the trust after go-live, and what does support cover?

Your team owns the trust and the Linux hosts after handover, and the written scope should say which tasks move to you. Ongoing work includes applying FreeIPA 4.x stabilization and security releases, watching DNS and replication health, and checking the trust after AD changes. Support can be contracted as a retainer, which DeployOpen offers for ongoing support and upgrades. The sibling FreeIPA upgrades and support topic describes what that covers. Agree on who responds to an incident and who approves changes to ID mapping or access rules before go-live.

How DeployOpen scopes, builds and hands over the AD trust

DeployOpen plans, implements, documents and supports FreeIPA on servers you control, including the cross-forest trust with your Active Directory forest. We begin by confirming DNS domain separation and the AD forest layout, then build and test the trust in your own environment before handing it over.

How we scope

  • Confirm the IPA DNS domain does not overlap with any domain in the AD forest before any build work starts
  • Record which AD domains, forests and user groups will be trusted, and which Linux hosts need AD logins
  • Agree in writing which ID mapping and ID view choices apply, and which host and sudo policies are in scope
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins; ongoing support is available as a retainer

How we build

  • Install and configure the Samba-based trust components on the FreeIPA side in your own infrastructure
  • Set up ID ranges, ID mapping and ID views so AD users resolve to consistent UIDs and GIDs on Linux hosts
  • Test AD user sign-in on representative hosts under FreeIPA host access and sudo policy before wider rollout

How we hand over

  • Deliver documentation of the trust configuration, DNS layout, ID mapping settings and the test results
  • Walk your identity and Linux operations staff through the trust, the policy model and the checks they will run
  • Document backup and restore steps that cover the trust state, so recovery plans include the AD relationship

How we support

  • Offer ongoing support and retainers covering FreeIPA upgrades, security releases and trust health checks after go-live
  • Review trust and ID view changes with your team when AD forest or domain structures change
  • Confirm with your team the support boundaries, response expectations and who owns AD-side changes before signing

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.