Getting Error while AD Test Connection - Exception occurred while executing the RPCRequest: Errors returned from IQService. Unable to cast object of type 'System.String' to type 'System.Collections.ArrayList'

Hi All,

I was doing the IdentityNow Integration with AD.
I did install IQService and trying to do the test connection, But hitting the below error -

  • Exception occurred while executing the RPCRequest: Errors returned from IQService. Unable to cast object of type ‘System.String’ to type ‘System.Collections.ArrayList’.Unable to cast object of type ‘System.String’ to type ‘System.Collections.ArrayList’… HRESULT:[0x80004002], Unable to cast object of type ‘System.String’ to type ‘System.Collections.ArrayList’.Unable to cast object of type ‘System.String’ to type ‘System.Collections.ArrayList’… HRESULT:[0x80004002]

Any pointers would be highly Appreciated.

Hey Amit,

Is there any BeforeProvisioningRule and or ConnectorRule that you have in place and if you can share the code snippet replacing sensitive data?

Thanks,
Aman

No customization is done as of now. It’s a fresh integration.

If you have access to the VAs that are deployed can you enable the ADLDAPConnector logs to debug and enable debug on cluster level and capture the plan?
We might get more verbose information there.

Alternatively,
I would suggest to provision the AD account with minimal required attributes
ex: DN, UPN, Password, memberOf, firstName, lastname, etc
And check if you can find the culprit?

1 Like

Hi @officialamitguptaa,

Did the test connection ever work on this source.?

Have you made any changes to the source JSON.? I have had errors with invalid parameters in the source JSON.

Hi All,

Thanks for your input. I was able to solve the issue. Below is the explanation -
Under the Domain Settings → Server → In past I entered the IP Address of the Domain controller, But forgot to press enter. To resolve the same, I updated the application via Postman which inserted the data in a weird way.

            {
                "servers": "192.168.36.103",
                "port": 389,
                "forestName": "identityclasses.net",
                "authorizationType": "simple",
                "user": "identityclasses\\administrator",
                "domainDN": "DC=identityclasses,DC=net",
                "useSSL": false
            }
        ]

I just rectified the same and it’s started to work.

Thank you all for all your efforts.

2 Likes