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.

Change Password API from remote server?

Discussion in 'cPanel Developers' started by jhyland87, May 16, 2009.

  1. jhyland87

    jhyland87 Well-Known Member

    Joined:
    Dec 8, 2008
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    So I am using WHMCS to manage my customers, id like to disable the password changing option, or simply remove the link from within the users cpanel, and make a new one, where it will take them to the whmcs login, and force them to change the password in their, this will allow me to login and assist them with things such as phpmyadmin, fantastico, whmsonic, and other addons that the whm to cpanel login wont do.

    How can I have my remote script, change a users password? Its not on the same server at all..

    Thanks
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Yes, you can use the XML API to change a user's password. Here's the documentation:

    http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/AutomationIntegration/ChangePassword

    Remember, the XML API can be called from a remote server.

    You can disable the change password functionality via Feature Manager. However, this will also disable the change password functionality in that user's webmail interface for all their webmail accounts.

    As far as adding a custom link to your control panel interface, are you familiar with how you can use our online plugin generator to do that for you?
     
  3. jhyland87

    jhyland87 Well-Known Member

    Joined:
    Dec 8, 2008
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    Is it possible to disable password changes for the main account only? I dont care for the mail passwords. I would make a script that would force them to change the passwords via whm as well, but im not sure how I would get the emails/ftp accounts in the first place.

    I see on http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/UsingRemoteAccessKeys/PhpKeys, you teach how to gain access of a remote server, using the cpanel key, but what would be on the '/usr/local/cpanel/Cpanel/Accounting.php.inc' page. I am also gaining access to my whm, via a shared account on a server that I dont run, this I dont have access to that directory...
     
  4. sirbrent

    sirbrent Well-Known Member

    Joined:
    Sep 30, 2008
    Messages:
    98
    Likes Received:
    1
    Trophy Points:
    8
    where is this online plugin generator you speak of?
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,465
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
Loading...

Share This Page