[Samba] Azure AD Connect password sync / Get-ADReplAccount PS module not working
arthur_ramsey at mediture.com
Fri Jul 21 19:13:46 UTC 2017
I created a service account that's a member of enterprise admins, domain
admins and domain controllers. I also explicitly gave the account
replication permissions at the domain level.
This is the error I'm getting.
Server: PS C:\Users\arthurr\Downloads> Get-ADReplAccount -SamAccountName ***redacted**** -Domain mediture -Server dc01.mediture.dom -Credential $cred -Protocol TCP
Get-ADReplAccount : The naming context could not be found
At line:1 char:1
+ Get-ADReplAccount -SamAccountName ***redacted**** -Domain mediture -Server dc01.mediture ...
+ CategoryInfo : NotSpecified: (:) [Get-ADReplAccount], Win32Exception
+ FullyQualifiedErrorId : System.ComponentModel.Win32Exception,DSInternals.PowerShell.Commands.GetADReplAccountCommand
Once person said they got it working on an older version of Samba:
I am using 4.6.4 (soon to be 4.6.6).
This e-mail and any attachments may contain CONFIDENTIAL information, including PROTECTED HEALTH INFORMATION. If you are not the intended recipient, any use or disclosure of this information is STRICTLY PROHIBITED; you are requested to delete this e-mail and any attachments, notify the sender immediately, and notify the Mediture Privacy Officer at privacyofficer at mediture.com.
More information about the samba