LemonBits

  • Home
  • About
  • Contact me
Active Directory

Upgrading from DirSync to Azure Active Directory Connect

Frane Borozan - September 5, 2016

In this article, I’ll discuss my experience with upgrading from DirSync to Azure Active Directory Connect and how I ran into some issues after the installation was complete.

DirSync and the Azure AD Connect are data syncing mechanisms that sync on-premises objects with the cloud. Microsoft is ending its support for DirSync in April 2017, so if you haven’t upgraded already, the time has come to migrate to its successor, the Azure AD Connect. The upgrade itself can be performed in two ways: in place or in parallel. “In-place” migration is used in a domain where you have fewer than 50,000 objects. I have used in-place migration.

Before proceeding with any major interventions, I wanted to test the migration in a test domain. Unfortunately, I couldn’t connect to the Active Directory with my Office 365 because I had trial tenant, and migration is only possible with the public domain. So every time I tried to connect, I was getting error code 15, as seen in the screenshot below.

Windows Azure Active Directory Sync tool Configuration wizard

The only solution to this problem was to have a registered domain and to try to pull off the migration directly in the production domain. Needless to say, this isn’t the wisest thing to do and is certainly not a best practice.

While doing the upgrade in the production domain, I came across a few problems. The installation itself went rather smoothly, however, after the upgrade the sync service didn’t start and sync the data. When the Azure AD Connect installation was finally over, it created a local service account in the domain. I went to check the Event Log and this is what I found out:

Error: The server encryption keys could not be accessed

To tackle this problem, I had to remove the existing encryption keys and generate new ones. I ran the misskmu.exe in the C:\Program Files\Microsoft Azure AD Sync\Bin. I was prompted to enter the username, password, and the domain – then an error popped up, logon failure. I found out that the problem had been in the local security policy: Local Security Policy > Local Policies > User Rights Assignment > Log on as a service.

The thing was, among the security settings, I had to include the service account with which I tried to remove the encryption codes. Once I did that and finished removing the keys, I could start the sync service without any trouble. The only problem was that the synchronization mechanism refused to work. Make sure you start this exe as an administrator! Othwerwise it won’t work.

I went back to check the event viewer and found this log:

  • Error while retrieving password policy sync configuration. Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: AADSTS90014: The request body must contain the following parameter: ‘password’

I assumed that the problem had something to do with the service accounts, and I was right.

The issue was hiding in the synchronization managing console and the settings for the Windows Azure Active Directory and the Active Directory Domain Services connectors: C:\Program Files\Microsoft Azure AD Sync\UIShell\miisclient.exe.

Synchronization Service Manager on DirSync

In the properties I noticed that the account set for the synchronization had been missing a password. I switched the service account to the one I knew the password for. I did the exact same thing for the connector. After that, the synchronization finally started working properly.

Connect to Active Directory Forest - Properties

In the end, everything seems to be working just fine and to be honest, I wasn’t expecting any inconveniences that happened along the way. The important thing is that there is always a solution, but sometimes you need to turn every stone to find it. Our upgrade from DirSync to Azure Active Directory Connect went smoothly, as for as the installation goes, however I find it important to point out the fact that I had a hard time grasping the fact that my settings weren’t automatically applied causing the server to suspend active synchronization. Luckily, I was able to find the root cause – in the services accounts. And yet it seems that the simplest things can sometimes turn into complicated matters.

DirSync status

Tags | Azure Active Directory Connect, DirSync
 0 1
Share Now

Frane Borozan

Helping SBC administrators kick-ass Google+

One Response

  • Steve Brown March 1, 2018 at 4:53 pm

    Thank you very much for this resolution. Saved my remaining hairline.

    Reply
  • Leave a Reply Cancel Reply

    Your email address will not be published. Required fields are marked *

    Previous Post In search of free SQL Server inventory tools
    Next Post Windows 10: Share a VPN Connection

    Connect with me on

    Latest Posts

    • SharePoint Agents: Revolutionizing Workplace Collaboration

    • Microsoft Data Security Posture Management for AI

    • SharePoint agents are very use to create and use

    • SharePoint Agents

    • BEWARE OF THE INACTIVE ONEDRIVE ACCOUNTS!!!

    • Microsoft’s version of the GenAI, Copilot is now available through WhatsApp

    • Control Copilot access to content

    • 🌟 Increasing Microsoft 365 Governance Adoption with custom solution branding🌟

    • What are the news from the Microsoft 365 community conference

    • Restricted SharePoint Search

    Recent Comments

    • Christoph Juli on VPN doesn’t work aka how to clear ARP cache on the computer when you connect to the VPN
    • Amir on The curious case of saved-critical Hyper-V machines in Hyper-V Manager or Incomplete VM Configuration in Virtual Machine Manager
    • Frane Borozan on Downloads folder slow to load/sort in Windows 10
    • güvenlik kamerası on Downloads folder slow to load/sort in Windows 10
    • Laki Lakovic on Opening group policy editor on a remote computer and forcing GP Update
    • Diane on Opening group policy editor on a remote computer and forcing GP Update
    • Manoj B on Differences between L1, L2, L3 system administrator guidlines
    • Travis Vroman on Teams slow
    • Yossi B on Remote Desktop Services Manager 2016
    • astha on SharePoint audit logs
    • Frane Borozan on Installing Remote Desktop Services 2016
    • Joe Zhou on Installing Remote Desktop Services 2016
    • Pino on Installing standalone Remote Desktop Gateway on the Windows Server 2012 R2 without complete Remote Desktop Services infrastructure
    • Eddy Wilson on Windows 10: Share a VPN Connection
    • haleybri.com on Remote Desktop Services Manager 2016
    • Atif on Remote Desktop Services Manager 2016
    • Tan Vu on KB2919355 The update is not applicable to your computer
    • Vinay on Installing Remote Desktop Services 2016
    • JOEL FERDY FEUBI TABOUE on KB2919355 The update is not applicable to your computer
    • Delmar on Installing standalone Remote Desktop Gateway on the Windows Server 2012 R2 without complete Remote Desktop Services infrastructure
    • Luke Welden on KB2919355 The update is not applicable to your computer
    • LM on Installing standalone Remote Desktop Gateway on the Windows Server 2012 R2 without complete Remote Desktop Services infrastructure
    • Anonymous987 on KB2919355 The update is not applicable to your computer
    • ANonyommus987 on KB2919355 The update is not applicable to your computer
    • Alan on Remote Desktop Services Manager 2016
    • Jagz on Installing Remote Desktop Services 2016
    • VG on SharePoint audit logs
    • VG on SharePoint audit logs
    • Kalle on SharePoint audit logs
    • 3 pandas on SQL Server security best practices
    • Kalle on SharePoint audit logs
    • Frane Borozan on Installing standalone Remote Desktop Gateway on the Windows Server 2012 R2 without complete Remote Desktop Services infrastructure
    • Erin Platt on Installing standalone Remote Desktop Gateway on the Windows Server 2012 R2 without complete Remote Desktop Services infrastructure
    • Tad Benoit on Remote Desktop Services Manager 2016
    • Dean Hufford on Installing standalone Remote Desktop Gateway on the Windows Server 2012 R2 without complete Remote Desktop Services infrastructure

    Copyright © 2023 Frane Borozan. All rights reserved