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.

checking password through api when account is suspended

Discussion in 'cPanel Developers' started by mccreare, Jan 12, 2011.

  1. mccreare

    mccreare Member

    Joined:
    Apr 23, 2003
    Messages:
    19
    Likes Received:
    1
    Trophy Points:
    1
    It's possible to authenticate a username/password pair through the API.

    It doesn't seem to work when the account is suspended.

    Is there a workaround for this, so I could validate them?
     
  2. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hi mccreare,

    If an account is suspended, I think it's completely suspended, just like in the browser.

    Other than that, you can authenticate programmatically with cPanel credentials against ports 2082/2083 with Basic HTTP authentication, or if you're authenticating as root you can use an access hash. This is all done via the XML-API interface documented here, XML and JSON APIs , and more specifically here, CallingAPIFunctions < AllDocumentation/AutomationIntegration < TWiki
     
  3. mccreare

    mccreare Member

    Joined:
    Apr 23, 2003
    Messages:
    19
    Likes Received:
    1
    Trophy Points:
    1
    Yes, I know how to do it when the account is not suspended. I'm asking if there is a workaround for when the account IS suspended. Does anyone know how to do this?
     
  4. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If the user is suspended, you won't be able to authenticate (and perform actions) with the user's credentials. There is no work around. The only opportunity to perform actions on a suspended account is via root/reseller override into the account. This is for both browser and API (via XML-API) access methods.

    Regards,
    -DavidN
     
Loading...

Share This Page