xml-api/listaccts returns strange response

nesanjoseph

Active Member
Dec 31, 2010
31
0
56
Hi,

Recently I came across a strange behavior when calling cPanel APIs. Here is what I did:

I have been using the xml-api calls without any issues. At one point, I suspended an account. Then called the following XML-API using root access:

https://<mycpanelserver>:2087/xml-api/listaccts

Now it returned the following XML which I did not really expect.
------------------------------------8<-----------------------------------
<cpanelresult> <data> <result>0</result> <reason>Access denied</reason> </data> </cpanelresult>
------------------------------------>8-----------------------------------

I don't understand why suspending an account causes this error. Could you please help me get rid of this issue?

Thanks,
Nesan Joseph R.
 

nesanjoseph

Active Member
Dec 31, 2010
31
0
56
Hi all,

Found the issue. Suspending an account was suspected as Brute Force attempts by the cPanel server and it has locked the API calls temporarily. I was able to fix this by adding the my cPanel server's IP address in "White List" from "Main -> Security Center -> cPHulk Brute Force Protection" page.

Regards,
Nesan Joseph R.