During the configuration process, specifically at the “Configure AAD Sync” stage, the setup fails with an authentication-related error when attempting to retrieve the Active Directory schema.

Juliet Nabateesa 0 Reputation points
2026-04-28T05:33:30.9733333+00:00

ExecuteADSyncConfiguration: configuration failed. Skipping export of synchronization policy. resultStatus=Failed An error occurred executing Configure AAD Sync task: Failed to retrieve schema. <connection-result>failed-authentication</connection-result> <server>jcrc.org.ug:389</server> <error-code>0x31</error-code> <error-literal>Invalid Credentials</error-literal>

Microsoft Security | Microsoft Entra | Microsoft Entra ID

1 answer

Sort by: Oldest
  1. AI answer

    2026-04-28T05:33:47.29+00:00

    The error indicates that the account used by the Azure AD/Entra ID Sync configuration wizard cannot authenticate to the on‑premises Active Directory (LDAP error 0x31 – invalid credentials) when trying to read the schema.

    Use these checks and fixes, in order:

    1. Verify the AD credentials being entered
    • Ensure the username and password are correct (no typos, expired password, or locked account).
    • Confirm that the account has Enterprise Admin permissions in the forest that the sync server is joined to.
    • To verify Enterprise Admin membership:
      1. On a domain controller (or a machine with RSAT), open Active Directory Users and Computers (dsa.msc).
      2. Right‑click the domain, select Find.
      3. In Name, type enterprise admins, select Find Now.
      4. Open Enterprise Admins, go to Members, and confirm the sync account is listed. If not, add it or use an account that is a member.
    1. Confirm the sync server can authenticate to AD
    • The sync server must be joined to the same forest whose schema is being read and must be able to contact domain controllers.
    • Check that:
      • The server is domain‑joined to the correct AD forest.
      • Network connectivity to domain controllers (LDAP/389, Kerberos, DNS) is working.
    • If the server cannot authenticate to AD, the wizard will fail with authentication errors even if the credentials are correct.
    1. Check system and account prerequisites for the Directory Sync tool
    • Ensure the server meets the Directory Sync tool requirements:
      • 64‑bit Windows Server (2003 SP2 or later, or later supported OS).
      • Joined to an AD domain in the forest to be synchronized.
      • Not a domain controller.
      • .NET Framework 3.5 or later installed.
    • The user running the Configuration Wizard must be a member of the local MIIS Admins group created during installation.
    1. If credentials are correct but authentication still fails
    • The issue can also occur when the sync server cannot properly authenticate with AD even though the account is valid.
    • In that case, apply the same remediation used for error 1789 (authentication failure to AD) on the sync server:
      1. Restart the sync server and retry the wizard.
      2. If the problem persists, remove the server from the domain and rejoin it:
        • Open System PropertiesComputer NameChange.
        • Temporarily join a Workgroup, restart.
        • Rejoin the correct Domain, restart again.
      3. After rejoining, rerun the Directory Sync Configuration Wizard and re‑enter the Enterprise Admin credentials.
    1. Rerun the Configuration Wizard
    • After completing the steps above, rerun the wizard and:
      • Use a verified Enterprise Admin account.
      • Ensure the server is domain‑joined and can reach domain controllers.
      • Confirm that the wizard no longer reports failed-authentication or Invalid Credentials when retrieving the schema.

    These steps address the common root causes: incorrect/insufficient AD credentials and the sync server being unable to authenticate to or contact Active Directory.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.