The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    6
    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:
    6
    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