Error: Unable to cast COM object of type 'System.__ComObject' to interface type 'ActiveDs.IADsUser'.
说明
Jobs are getting frozen jobs when attempting to create ADSAccounts. The following error is displayed in the logs:
[System.InvalidCastException] Unable to cast COM object of type 'System.__ComObject' to interface type 'ActiveDs.IADsUser'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{GUID}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).).
原因
FastBind is enabled for the Active Directory synchronization project
解决办法
Disable the FastBind option for the target system connection to Active Directory as this limits Identity Manager's ability to synchronize as not all properties are read-write.
Follow the steps below to disable FastBind for the synchronization project:
1. Open Synchronization Manager
2. Double-click on the "Active Directory Domain" synchronization project for the domain exhibiting the issue.
3. Click on Target system on the left
4. If prompted for the target system connection password, use remote system to route the connection through the job server, or provide the password manually. The user account is not provided, the administrator will need to know which user account had been specified.
5. Click Edit connection to open the AD connection wizard
6. Advance to the Credentials screen, provide the password again and click "Test"
7. On the Configure connection options disable 'FastBind'
8. Complete the wizard, no further changes should be required and then Commit to database to save the changes.