Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default Change Password API from remote server?

    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. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by jhyland87 View Post
    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
    Yes, you can use the XML API to change a user's password. Here's the documentation:

    http://twiki.cpanel.net/twiki/bin/vi...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. #3
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default

    Quote Originally Posted by cPanelDavidG View Post
    Yes, you can use the XML API to change a user's password. Here's the documentation:

    http://twiki.cpanel.net/twiki/bin/vi...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?
    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/vi...ssKeys/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. #4
    Member
    Join Date
    Sep 2008
    Posts
    98

    Default

    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?
    where is this online plugin generator you speak of?

  5. #5
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,893
    cPanel/Enkompass Access Level

    Root Administrator

Similar Threads & Tags
Similar threads

  1. Improve performance of password change via XML-API
    By larwilliams in forum cPanel Developers
    Replies: 1
    Last Post: 01-25-2010, 10:22 AM
  2. Request XML-API function: change password
    By XenomediaBV in forum cPanel Developers
    Replies: 2
    Last Post: 09-14-2009, 01:41 PM
  3. Remote password change
    By angelodag in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-06-2009, 03:43 PM
  4. API change password dont work
    By VCServer in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-21-2008, 02:41 PM
  5. API call to change cpanel password?
    By electric in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 07-27-2007, 08:58 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube