[AD Connect - Part 1] Custom Installation and Configuration (without starting synchronization)

We are going to perform an Azure AD Connect installation from scratch. The goal will be to deploy identity synchronization from an ADDS Domain located in a VM in Azure (Madsblog.local) to the Azure AD in an existing CDX Tenant (Madsblog.net

AI-assisted translation, approved by Mateo.

We are going to perform an Azure AD Connect installation from scratch. The goal will be to deploy identity synchronization from an ADDS Domain located in a VM in Azure (Madsblog.local) to the Azure AD in an existing CDX Tenant (Madsblog.net).

Both environments have populated identities. The idea will be, once the installation has been completed, to perform a SoftMatch using SMTP addresses and thus automatically populate the Immutable ID in Azure AD.

Initially, we will begin with the installation and configuration of a Custom Azure AD Connect installation.

What is Azure AD Connect?

It is a Microsoft application designed to meet hybrid identity goals. It is installed in the on-premises infrastructure and allows us to "synchronize" identities unidirectionally (with some exceptions) from ADDS to Azure AD. This will allow us to have a unified identity for all users in our environment. It is a free feature for any Azure/365 subscription and does not require any special license (you do need P1 or P2 for some features that involve it, but not for the core feature itself).

In this regard, we can perform this synchronization granularly and have numerous features that we can use when carrying it out: from how we replicate our passwords, synchronization by OUs, synchronization by Groups, attribute filtering, among others.

Design considerations

There are some considerations to keep in mind regarding the design of the tool:

  • IMPORTANT: keep in mind that once identities have been synchronized, ADDS becomes the authoritative source for managing identities. Any changes we want to make to them must be made from our on-prem infrastructure, except for some exceptions.
  • Choice of authentication method: Pass Hash, PTA, or ADFS. Although Password Hash is used in most of the cases I have seen, there are different scenarios in certain business models where, due to different types of regulations, they cannot replicate passwords or perform authentication outside their on-premises environment. In those cases, we must evaluate the possibility of using PTA or ADFS.
  • High availability / Disaster Recovery (DR): in this regard, in addition to having our active synchronization server, we can have a second server in Staging mode. What is staging mode? In this mode, the AD Connect server will receive/read all data from ADDS but will not write to Azure AD. We can change the mode of each server as necessary. High availability requires manual failover.
  • There are also some supported design limitations regarding the Forest:AADConnect:AzureAD relationship. In this regard, for example:
    • There can only be a 1:1 relationship (1 AD Connect - 1 Azure AD Tenant)
    • We can synchronize several forests. The relationship is n:1 (n forests - 1 AD Connect - 1 Azure AD Tenant).
    • It is not possible to synchronize several forests through several AD Connect instances to 1 tenant.
    • Lastly, we can synchronize 1 forest with multiple AD tenants through the following topology:
    • In this case, only 1 AD Connect will be authorized to perform any type of Writeback to the on-prem ADDS.

Versions

It is necessary to keep in mind that there was a fairly significant change between AD Connect V1 and AD Connect v2.

AD Connect V1 was retired from support on August 31, 2022. After that date, it is recommended to update all installations of this product to V2.

The main changes were: SQL Server 2019 LocalDB, MSAL authentication library, Visual C++ Redist 14, TLS 1.2, SHA2-signed binaries, Windows Server 2012 and 2012 R2 no longer supported, and the requirement for PowerShell 5 or later.

All the details Here.

We can download the latest version of the application from the following link: Download Microsoft Azure Active Directory Connect from Official Microsoft Download Center

Prerequisites

  • Have an Azure AD tenant.
  • Add a verified domain.
  • Preparation/normalization of on-premises identities with IdFix (we will see this in the next article).
  • ADDS Forest and Schema functional level of Windows Server 2003 or higher.
  • Recommended: enable the ADDS Recycle Bin.
  • Software:
  • Accounts:
    • Global Administrator.
    • Enterprise administrator (or Domain admin).
  • Hardware, according to the number of synchronized objects:

Custom installation and configuration (without starting synchronization)

First, we must download the installer for the latest version (see link above)

Unless we have some of the prerequisites preconfigured, we should not select any of the checkboxes:

In this case, we will select Password Hash, which, as we explained above, is the most widely used Authentication strategy, but depending on our design we may need to use another one:

We connect our Azure AD Global Administrator account:

We will connect our ADDS directory:

We will enter the username and password of at least one Enterprise Admin:

We verify the correct connection to our ADDS:

We verify the Matching Domain: in this regard, we will need to have the domain verified in Azure AD and added as a Suffix in ADDS. In this case, the domain we will use for Sign-in is Madsblog.net.

Here we are going to select filtering by Domain and OU. In this case, we will use the "AD Connect Sync Test" OU.

In this case, we must select that users will be represented once in all directories involved. Additionally, we will let Azure AD choose the Source Anchor (in the next post we will explain in detail what this attribute is about)

We will not select any type of filter for user and device synchronization:

Initially, we will not add any additional features to our installation; we will use the basic functionality.

In this case, we also enable Single Sign-On; for this feature to be enabled through the Wizard, we must enter Domain Administrator credentials:

We review the configuration options on the following screen and make sure to uncheck the option "Start the syncronization process when configuration completes."

We start the configuration:

And once it is complete: done! We now have our AAD Connect configured on an On-Prem server without starting synchronization immediately:

The Warnings at the end of the wizard are about:

  • ADDS Recycle Bin: it is recommended that it be enabled.
  • Synchronization disabled
  • Source Anchor: mS-DS-ConsistencyGuid
  • For SSO: configure through Group Policy.

Thanks for reading. The learning continues in the next article.