Skip to content

Configuring Unix Attribute Synchronization with Azure Entra ID Using Microsoft Entra Connect Sync

David Mulder edited this page Feb 5, 2025 · 6 revisions

Overview

This guide explains how to configure Microsoft Entra Connect Sync to synchronize Unix attributes (uidNumber, gidNumber, loginShell, unixHomeDirectory, etc.) from an on-premises Active Directory to an existing Azure Entra ID instance. This is essential for Linux authentication solutions like Himmelblau that rely on Unix attributes stored in AD. This guide assumes that Microsoft Entra Connect is already installed and configured. If not, follow the instructions in this wiki to configure Microsoft Entra Connect.


Prerequisites

  • A Windows Server with Active Directory Domain Services (AD DS) installed and configured.
  • A configured Active Directory domain with Unix attributes (uidNumber, gidNumber, unixHomeDirectory, loginShell, etc.) assigned to users and groups.
  • An Azure Entra ID tenant.
  • Microsoft Entra Connect Sync installed on a domain-joined Windows Server.

Step-by-Step Configuration

1. Open Microsoft Entra Connect Sync

  1. Launch Microsoft Entra Connect Sync from the Start Menu.
  2. Click "Configure" to begin.

Microsoft Entra Connect Sync Welcome


2. Customize Synchronization Options

  1. Select "Customize synchronization options" and click Next.

Customize Synchronization Options


3. Connect to Microsoft Entra ID

  1. Enter your Azure Entra ID administrator credentials (Global Admin or Hybrid Identity Admin).

Connect to Microsoft Entra ID

  1. Sign in when prompted.

Sign in to Entra ID


4. Connect to Active Directory

  1. Verify that the on-premises Active Directory domain (forest) is connected.
  2. Click Next.

Connect Active Directory


5. Configure Domain and OU Filtering

  1. Choose whether to sync all domains and OUs or only specific OUs.
  2. Click Next.

Domain and OU Filtering


6. Enable Directory Extension Attribute Sync

  1. Ensure "Directory extension attribute sync" is checked.
  2. Click Next.

Enable Directory Extension Attribute Sync


7. Select Unix Attributes for Synchronization

  1. In the Directory Extensions step, select the following attributes:
    • uidNumber (user)
    • gidNumber (user) (the user's primary group attribute)
    • gidNumber (group)
    • loginShell (user)
    • unixHomeDirectory (user)
    • gecos (user) (optional, for additional Unix user details)
  2. Click Next.

Unix Attributes Selection


8. Configure and Apply Settings

  1. Click Next to save and apply the synchronization settings.
  2. Wait for the configuration to complete.

Configuration Progress


9. Verify Configuration Completion

  1. Once the setup is completed, you’ll see a confirmation message.
  2. Click Exit.

Configuration Complete


10. Validate Synchronization

After the setup:

  1. Open the Microsoft Entra Admin Center (https://entra.microsoft.com/).
  2. Go to Hybrid ManagementMicrosoft Entra Connect.
  3. Check the sync status and ensure that users have their Unix attributes synchronized.