I am creating a webpart in which I am writing a code to change active directory password of the current context user but I am getting this error:
Password couldn't be changed due to restrictions: Configuration information could not be read from the domain controller, either because the machine is unavailable, or access has been denied. (Exception from HRESULT: 0x80070547)
I am using AccountManagement namespace, used PrincipalContext/UserPrincipal and it gets successfully connected to the Active Directory but when I call its ChangePassword Method it errors out.
The administrator has said that the Active Directory is READ ONLY, let me know how can I change the active directory password with RODC (Read-Only Domain Controller)