Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

xml-api/listaccts returns strange response

Discussion in 'cPanel Developers' started by nesanjoseph, Sep 12, 2011.

  1. nesanjoseph

    nesanjoseph Active Member

    Joined:
    Dec 31, 2010
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    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.
     
  2. nesanjoseph

    nesanjoseph Active Member

    Joined:
    Dec 31, 2010
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    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.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice