- Employer work
- Live
Active Directory to Entra ID migration
Hybrid identity for SOC 2: one account per person, enforced MFA and encrypted directory logins.
- staff accounts linked to Microsoft 365
- 69
- apps moved from LDAP to LDAPS
- 14
- stale accounts removed
- 28
- from assessment to company-wide sync
- ~6 weeks
Write-up only. Employer work, so there is no public code or demo.
I led and completed Patron Points' migration from a standalone on-premises Active Directory to Microsoft Entra ID, as part of the company's SOC 2 work. Staff now have one account and one password across their computer and Microsoft 365, MFA is enforced through Conditional Access for staff and the VPN, and more than a dozen apps moved from plain LDAP to encrypted LDAPS. Users and running applications saw no disruption.
The problem
Identity lived in two places. Staff had an on-premises Active Directory account for their computer, the VPN and internal apps, and a separate cloud-only Microsoft 365 account with its own password. Nothing synced between them. Internal apps checked passwords against AD over unencrypted LDAP, and SOC 2 called for stronger, centrally managed access controls and a clear record of who signed in to what.
Assessment before any changes
I started with a one-week investigation of what it would take to manage identity in Entra while keeping AD for everything that still depends on it.
- Microsoft had just released a way to create users in Entra and provision them down into AD, but it was still in preview. I recommended a standard hybrid setup now, with users syncing from AD to Entra, and moving account ownership to the cloud once that feature is fully supported. I did not want all of the company's authentication resting on a preview feature.
- Every account used a username suffix Entra could not match to the cloud accounts, so fixing usernames was a prerequisite.
- Of roughly 160 enabled AD accounts, only about 65 were real people. The rest were service, admin and leftover accounts.
- More applications authenticated against AD than anyone had documented.
Preparing the directory
- App inventory: found every application that authenticates against AD by reading the infrastructure repos, checking each app's admin settings and watching domain controller logs. That turned up 15 applications, several of them sharing a single service account.
- Encrypted directory logins: renewed the domain controller certificates and turned on automatic renewal, opened LDAPS from the Kubernetes clusters through the firewall, then moved 14 applications, including Keycloak, Harbor, Grafana, OpenSearch, Airflow and the firewall itself, from LDAP to LDAPS. Where an app supported it, I pointed it at both domain controllers instead of one.
- Auditing: made domain controller login auditing permanent through Group Policy, so successful and failed sign-ins, account changes and lockouts are always recorded.
- Cleanup: disabled stale and unused accounts, watched the logs for two weeks for anything still trying to use them, then deleted 28. Resolved groups that would have collided with existing cloud groups.
- Matching: matched every real user to their existing Microsoft 365 account by email so the sync would link accounts instead of creating duplicates, and closed the licensing gaps that would have blocked Conditional Access.
Cutover: pilot first, then everyone
Every step had a written runbook, a dry run where possible and a rollback.
- Installed Entra Cloud Sync on the less loaded domain controller while the other one kept serving logins.
- Changed everyone's username to their company email address with a script that did a dry run first and saved a rollback file. Before that, I changed how the VPN looks users up so VPN logins kept working through the change.
- Piloted with the IT team (22 people) and confirmed each account linked to the right existing cloud account. The rest of the company followed the next day. 69 of 71 people linked on day one. The other two held admin roles that had to move to separate admin accounts first.
- Turned on self-service password reset with writeback, so a reset in Microsoft also changes the AD password.
Access controls and MFA
- Replaced Microsoft's security defaults with Conditional Access policies: MFA for all users, for admins and for the VPN, plus a block on legacy sign-in methods.
- Ran every policy in report-only mode for a week first. That showed exactly who would see a new prompt and which older systems would have broken, so I could handle them before anything was enforced.
- Built Microsoft sign-in with MFA for the VPN, with Entra groups controlling access. I piloted it with IT, moved every VPN user into the new groups, rolled it out to all staff and then retired the old AD-based VPN login.
Outcome
Staff now use one identity for their computer, the VPN and Microsoft 365, with MFA enforced and passwords reset from one place. Group and access management now happens in Entra. Applications authenticate over encrypted connections, and sign-in activity is recorded for audits. None of it interrupted people's work or the applications running on the platform.
Where it goes from here
On-premises AD stays in place for the systems that still need it, managed from Entra. New accounts can already be created in Entra and provisioned down into AD. I tested that with a pilot group, including the case where someone leaves. More accounts move to cloud ownership as Microsoft's Entra-to-AD provisioning reaches general availability.