Share via

AD Connect: A local error has occured

Ryan Kielar 21 Reputation points
2021-05-05T16:56:05.897+00:00

When configuring Azure AD Connect for the first time I receive the error:

ActiveDirectoryOperationException
A local error has occured.

This happens after the Azure AD sign-in configuration where I have to verify "Continue without matching all UPN suffixes to verified domains". Below is the error from the trace log, any idea what I can try to get past this error in the AD Connect configuration?

[11:08:09.844] [ 1] [ERROR] A terminating unhandled exception occurred.
Exception Data (Raw): System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException: A local error has occurred.
---> System.DirectoryServices.DirectoryServicesCOMException: A local error has occurred.

at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.PropertyValueCollection.PopulateList()
at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName)
at System.DirectoryServices.PropertyCollection.get_Item(String propertyName)
at System.DirectoryServices.ActiveDirectory.PropertyManager.GetPropertyValue(DirectoryContext context, DirectoryEntry directoryEntry, String propertyName)
--- End of inner exception stack trace ---
at System.DirectoryServices.ActiveDirectory.PropertyManager.GetPropertyValue(DirectoryContext context, DirectoryEntry directoryEntry, String propertyName)
at System.DirectoryServices.ActiveDirectory.ActiveDirectorySchema.GetSchema(DirectoryContext context)
at Microsoft.Online.Deployment.Framework.Providers.ActiveDirectoryProvider.IsAttributePresent(String targetUsername, String username, SecureString password, String attributeName)
at Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.PerformConfigurationPageViewModel.<>c__DisplayClass131_0.<GenerateActions>b__1()
at Microsoft.Online.Deployment.OneADWizard.App.SafeInvokeAction(Action action)
[11:08:09.858] [ 1] [INFO ] Page transition from "Configure" [PerformConfigurationPageViewModel] to "Error" [ErrorPageViewModel]
[11:08:13.852] [ 1] [INFO ] Opened log file at path C:\ProgramData\AADConnect\trace-20210505-110700.log

Thank You,
Ryan

Microsoft Security | Microsoft Entra | Microsoft Entra ID

Answer accepted by question author

  1. Ryan Kielar 126 Reputation points
    2021-05-11T19:32:59.827+00:00

    Hi @James Hamil , we got AD Connect working.

    I was logging into the server and running the installer with a Domain Admin account and only using the Enterprise Admin account when prompted for credentials during the AD Connect configuration. I think the resolution was using an account that has Enterprise Admin permissions on our local domain when logging into the AD Connect server and running the installer.

    Was this answer helpful?

    1 person found this answer helpful.

0 additional answers

Sort by: Most 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.