Browse learn

LDAP and Microsoft Entra ID Integration

Understand patterns for connecting LDAP-dependent systems with Entra ID through synchronization, managed domains, or application modernization.

On this page

Why Integrate LDAP and Microsoft Entra ID?

As organizations modernize identity management, a recurring challenge is bridging cloud-native directories like Microsoft Entra ID with legacy systems built for LDAP-based authentication and directory access. This need is especially acute for software developers and IT architects migrating infrastructure to Azure, yet supporting critical applications and Unix workloads that depend on LDAP. Integrating these worlds enables secure, unified identity across cloud and on-premises resources and extends cloud-first security and lifecycle management to legacy applications.

Understanding the Components: Entra ID, Domain Services, and LDAP

Microsoft Entra ID

Microsoft Entra ID (previously Azure AD) is a cloud-based directory and identity service. It provides modern authentication (OAuth, OpenID Connect, SAML) and user/group lifecycle management, but it does not natively expose an LDAP endpoint. This means legacy apps expecting direct LDAP connectivity cannot interact with Entra ID directly.

Entra Domain Services

To address this gap, Microsoft offers Entra Domain Services—a managed domain service that exposes LDAP, Kerberos, and NTLM interfaces compatible with legacy applications. Entra Domain Services runs as a managed instance joined to your Entra tenant. It provides directory protocol compatibility for apps that aren't ready for modern authentication, with objects (users, groups) synchronized from your Entra ID.

LDAP

The Lightweight Directory Access Protocol (LDAP) is a standards-based protocol for querying and managing directory information. Traditional apps, Unix systems, and certain network appliances rely on LDAP for authentication and authorization. Integrating these with cloud identity often means bridging protocol and schema differences between LDAP and cloud directories.

Boundaries

  • Entra ID: Authoritative cloud identity, no native LDAP support.
  • Entra Domain Services: Managed, protocol-compatible directory with LDAP, but not a full replacement for Active Directory.
  • On-premises LDAP: Third-party LDAP servers or Active Directory, often still required for some legacy workloads.

Architectural Patterns for LDAP Integration

1. Managed Domain Services Bridge

The canonical pattern for LDAP-enabling cloud identities is provisioning Entra Domain Services. In this mode:

  • Users and groups are synchronized one way (Entra ID → Domain Services).
  • The managed domain exposes LDAP, Kerberos, and NTLM protocols.
  • Legacy and cloud applications can authenticate or query over LDAP to the managed domain.

This allows existing LDAP-dependent applications to function without modification, while administrative changes and lifecycle events flow from the cloud directory.

2. Outbound LDAP Provisioning with Generic LDAP Connector

Entra ID can provision users and groups into external LDAP v3-compliant directories (like OpenLDAP or AD LDS) using Microsoft's Generic LDAP Connector. This model supports scenarios where Entra ID is the authoritative source and a third-party LDAP server is the downstream target.

  • The connector maps attributes and synchronizes objects outbound from Entra ID.
  • Not all LDAP directories are supported equally; capabilities like delta sync or password operations depend on the target platform.

Note: The connector does not support provisioning into traditional Active Directory Domain Services (AD DS) as the target.

3. Inbound Synchronization from LDAP

For hybrid environments, the Generic LDAP Connector can also enable inbound synchronization—pulling users and groups from on-premises LDAP directories into Entra ID via Entra Connect. This pattern is foundational for organizations shifting the center of identity management to the cloud.

Supported Scenarios: Use Cases and Key Differences

Cloud-First with Legacy Workloads

Example: An application hosted in Azure requires LDAP-based authentication. The legitimate, supported path is to enable Entra Domain Services, which synchronizes Entra ID objects and exposes them via LDAP. The application points to the managed domain rather than Entra ID itself.

Provisioning to Non-Microsoft LDAP

Example: Unix servers require user and group definitions sourced from Entra ID, but these servers authenticate via OpenLDAP. With outbound provisioning, Entra ID synchronizes identities to OpenLDAP. Attribute mapping is handled by the Generic LDAP Connector, ensuring alignment between cloud attributes and Unix expectations.

Hybrid Identity with Synchronization

Example: An enterprise maintains an on-premises OpenLDAP directory but wants to move identity management to Entra ID. Inbound synchronization via Entra Connect and the Generic LDAP Connector brings those identities into Entra ID, centralizing management while retaining compatibility with legacy systems.

Key Differences and Limitations

  • Direct LDAP support: Only Entra Domain Services exposes LDAP, not Entra ID itself.
  • Synchronization directionality: All flows are one way—outbound from Entra ID to Domain Services or external LDAP, or inbound from LDAP to Entra ID. No bidirectional sync.
  • Supported operations: Not all LDAP controls and extended operations are supported; some features may be limited depending on the connector, directory, or schema.
  • Authentication flows: Legacy apps authenticate against Domain Services (using LDAP, Kerberos, or NTLM), not Entra ID directly.

Securing Integration: LDAPS, Certificates, and Best Practices

Secure LDAP (LDAPS)

When enabling LDAP exposure via Entra Domain Services, always use Secure LDAP (LDAPS). LDAPS encrypts LDAP traffic with TLS, protecting sensitive user credentials and directory queries in transit.

Certificate Requirements

  • Domain Services LDAPS requires a TLS certificate for the domain name used by applications.
  • Certificates from a trusted CA are needed for internet-based clients; self-signed certificates are only suited for certain domain types and do not offer broad trust.
  • Misconfiguration or expired certificates commonly leads to failed binds or authentication errors.

Deployment Pitfalls

  • Exposing LDAPS to the public internet without restrictive firewall or network rules risks identity compromise.
  • Improper attribute mapping or overlooked password synchronization settings can disrupt legacy app authentication.

Misconceptions, Limitations, and Edge Cases

Misconception 1: Entra ID natively responds to LDAP requests.
Correction: Only Entra Domain Services exposes an LDAP endpoint, acting as the bridge. Entra ID itself is never an LDAP server.

Misconception 2: Synchronization is bidirectional between Entra ID and Domain Services.
Correction: Sync is strictly one way. Changes made in the managed domain (via LDAP tools or legacy apps) do not flow back to Entra ID.

Misconception 3: The LDAP connector supports provisioning into Active Directory Domain Services (AD DS).
Correction: The connector supports AD LDS and standard LDAP v3 directories—not AD DS itself.

Limitation Highlights:

  • Schema or directory extensions are constrained to what the managed service or connector supports.
  • Some advanced AD features (Group Policy, forest trusts) are not available in Entra Domain Services.
  • Password writeback and managed authentication are limited; password hashes may need explicit synchronization.

Tooling, Troubleshooting, and Real-World Guidance

Official Tools and Services

  • Entra Domain Services: Managed LDAP/Kerberos/NTLM directory, synchronized from Entra ID.
  • Entra Connect and Generic LDAP Connector: Synchronization/provisioning agents for connecting Entra ID with LDAP v3 servers or ingesting from LDAP into Entra ID.

Troubleshooting Outlook

  • Regularly validate LDAPS certificate validity and trust chain.
  • Ensure synchronization status in the Entra admin center matches expectations.
  • Application errors often stem from misunderstanding the direction and boundaries of sync or from attempting to bind directly to Entra ID.

Real-World Gaps and Considerations

  • Official documentation does not exhaustively cover advanced mappings or operational troubleshooting for non-Microsoft LDAP targets.
  • Evaluate operational needs: attribute mapping, delta synchronization, and password handling differ by integration scenario and target directory.
  • For complex or mixed-vendor topologies, factor in connector and directory schema compatibility during planning.

Sources