Home Lab / Azure AD Sync
Connected a local Active Directory domain to the cloud using Microsoft Entra Connect Cloud Sync, then proved the whole identity path works — from a hash on a local DC to a live cloud login.
-
Environment setup
Built a local AD domain controller (
corp.local) inside VirtualBox, created a Microsoft Entra ID tenant, and bridged the two with the Entra Connect Cloud Sync agent to sync identities upward. -
Test users & provisioning
Created test users inside a dedicated
IT_DepartmentOU. Cloud provisioning stalled on scope filters until I fed Entra ID the exact distinguished name path:CN=Antonis Papathanasiou,OU=IT_Department,DC=corp,DC=local. -
Continuous sync
Flipped the sync configuration from
DisabledtoEnabledto wake up the pipeline, then confirmed replication with aDirectory synced: Yesstatus flag and an end-to-end cloud login.
The local sync agent extracts a password hash from Active Directory, hashes it again, and uploads it to Entra ID — authentication then happens on Microsoft's servers against that stored hash, not against the domain controller. Sync is one-way, so user management still happens locally. If the lab VM is off, synced users can still log in (Entra ID keeps its own copy), but new changes queue up until the domain controller is back online.