Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 17
  1. #1
    Member
    Join Date
    Nov 2001
    Posts
    455

    Arrow API call to change cpanel password?

    We would like to allow our cpanel customers to change their cpanel password from within our customer management system.

    Is there a "change password" API function?

    Thanks.
    I am an eNom ETP.
    Sign up today if you want an eNom.com domain reseller account from a reliable provider.
    * We now provide support and service to over 3250 happy resellers!

  2. #2
    Member
    Join Date
    Nov 2001
    Posts
    455

    Default

    This seems like a pretty basic API function.

    Nobody knows?
    I am an eNom ETP.
    Sign up today if you want an eNom.com domain reseller account from a reliable provider.
    * We now provide support and service to over 3250 happy resellers!

  3. #3
    Member eNetHosts's Avatar
    Join Date
    Apr 2007
    Posts
    195

    Default

    Don't know whether it's worth a try popping along to WHMCS if nobody comes up with a solution.

    http://whmcs.com

    In WHMCS they have support in their scripts for server support staff to change an individuals cPanel password so maybe this is something they've already looked at.

  4. #4
    Member
    Join Date
    Mar 2004
    Posts
    91

    Default

    I'm interested to know as well

  5. #5
    Member
    Join Date
    Jul 2005
    Posts
    24

    Default You can try this

    http://ayion.mirrors.phpclasses.org/...class/139.html

    If the above link doesn't work you can always go to phpclasses.org and browse the classes in the "Hosting" category.

    I've never tried any of the classes currently listed in there (or know if they'll work with cPanel 11 or not), but they may provide you with the clues you'll need to figure things out.

    The reason I know about them is because I wanted something to add email accounts remotely so I looked it up, but there are some other classes there for managing the hosting accounts as well.

    WHMCS is a great solution as well.

    -Omar

  6. #6
    Member
    Join Date
    Dec 2003
    Posts
    6

    Default

    I'm the author of this class:
    http://ayion.mirrors.phpclasses.org/...kage/3534.html

    It can change cPanel account passwords through PHP.

  7. #7
    Member
    Join Date
    Nov 2001
    Posts
    455

    Default

    So there is no "change password" functionality in the cpanel API, then? The only way to do this is to basically call the cpanel changepw.html page and parse response for success?

    Can anyone from cpanel please comment?
    I am an eNom ETP.
    Sign up today if you want an eNom.com domain reseller account from a reliable provider.
    * We now provide support and service to over 3250 happy resellers!

  8. #8
    Member
    Join Date
    Nov 2001
    Posts
    455

    Default

    Quote Originally Posted by brendandonhue View Post
    I'm the author of this class:
    http://ayion.mirrors.phpclasses.org/...kage/3534.html

    It can change cPanel account passwords through PHP.
    Your script requires the cpanel un/pw to be hardcoded into it somewhere. (It is then passed into a URL to cpanel when it calls the pw change page.)

    The problem is that we want to give customer the ability to change email from our customer managmenent system. We have many servers, and it's not realistic to hardcode the WHM or root un/pw for every server into our script.

    Is there no way to call the cpanel API using the proper Server Access Key, just like we can do already to create/suspend/upgrade accounts using the cpanel API?

    Seems like password change functionality would be pretty basic stuff, but it seems to be missing.
    I am an eNom ETP.
    Sign up today if you want an eNom.com domain reseller account from a reliable provider.
    * We now provide support and service to over 3250 happy resellers!

  9. #9
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,514

    Default

    Quote Originally Posted by electric View Post
    So there is no "change password" functionality in the cpanel API, then? The only way to do this is to basically call the cpanel changepw.html page and parse response for success?

    Can anyone from cpanel please comment?


    Use /xml-api in cpanel

  10. #10
    Member
    Join Date
    Nov 2001
    Posts
    455

    Default

    Quote Originally Posted by cpanelnick View Post
    Use /xml-api in cpanel
    Are there docs for it anywhere?

    http://www.cpanel.net/plugins/xmlapi/index.html
    http://www.cpanel.net/plugins/api2/index.html

    No mention of password change functionality in either page. Is this an undocumented feature or are docs somewhere else?
    I am an eNom ETP.
    Sign up today if you want an eNom.com domain reseller account from a reliable provider.
    * We now provide support and service to over 3250 happy resellers!

  11. #11
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,514

    Default

    Quote Originally Posted by electric View Post
    Are there docs for it anywhere?

    http://www.cpanel.net/plugins/xmlapi/index.html
    http://www.cpanel.net/plugins/api2/index.html

    No mention of password change functionality in either page. Is this an undocumented feature or are docs somewhere else?
    Just call the api2 function using the cpanel call

    http://www.cpanel.net/plugins/xmlapi/cpanel.html

    Update: it looks like the api2 page is missing about 200 functions.

    Heres the xml you need
    :


    <cpanelaction>
    <module>Passwd</module>
    <func>change_password</func>
    <args>
    <oldpass>__PASSHERE__</oldpass>
    </args>
    <args>
    <newpass>__PASSHERE__</newpass>
    </args>
    </cpanelaction>

    The responses are

    status,statustxt,passwdoutput,applist

  12. #12
    Member
    Join Date
    Nov 2001
    Posts
    455

    Default

    Quote Originally Posted by cpanelnick View Post
    <oldpass>__PASSHERE__</oldpass>
    Thanks Nick. Is it possible to use this function without the old password?

    The idea is that we would like to give our customer support people the ability to reset a customer's password without requiring them to have access to the root WHM, etc...

    And we'd also like to be able to build-in a "change control panel" password change function in our billing system.

    Password change requests are the #1 most requested action on our helpdesk, so we're trying to reduce the amount of work and number of requests related to this.

    Would be nice if customer can do the pw change themselves directly from our billing system (which they already have to authenticate to access, etc...)

    Is this possible? Sorry if I'm a bit confused here -- we've got three different api systems, from what I can see, and zero documentation on this particular function.

    Thanks for any help you can give. I'm surprised more people haven't asked for this functionality, as it seems like it would be useful...

    I am an eNom ETP.
    Sign up today if you want an eNom.com domain reseller account from a reliable provider.
    * We now provide support and service to over 3250 happy resellers!

  13. #13
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,514

    Default

    Quote Originally Posted by electric View Post
    Thanks Nick. Is it possible to use this function without the old password?

    The idea is that we would like to give our customer support people the ability to reset a customer's password without requiring them to have access to the root WHM, etc...

    And we'd also like to be able to build-in a "change control panel" password change function in our billing system.

    Password change requests are the #1 most requested action on our helpdesk, so we're trying to reduce the amount of work and number of requests related to this.

    Would be nice if customer can do the pw change themselves directly from our billing system (which they already have to authenticate to access, etc...)

    Is this possible? Sorry if I'm a bit confused here -- we've got three different api systems, from what I can see, and zero documentation on this particular function.

    Thanks for any help you can give. I'm surprised more people haven't asked for this functionality, as it seems like it would be useful...


    You'd have to use the whm xml-api for this, and there currently is not a function to change password in the whm xml-api. I've added it to the request list for the whm xml-api.

  14. #14
    Member
    Join Date
    Nov 2001
    Posts
    455

    Default

    Quote Originally Posted by cpanelnick View Post
    ....there currently is not a function to change password in the whm xml-api. I've added it to the request list for the whm xml-api.
    Thanks Nick. I hope it arrives "soon".
    I am an eNom ETP.
    Sign up today if you want an eNom.com domain reseller account from a reliable provider.
    * We now provide support and service to over 3250 happy resellers!

  15. #15
    Member
    Join Date
    Jun 2007
    Posts
    41

    Default

    Quote Originally Posted by cpanelnick View Post
    http://www.cpanel.net/plugins/xmlapi/cpanel.html

    Update: it looks like the api2 page is missing about 200 functions.
    Hi everyone,

    Can someone provide me the full list of api2 functions like the one for the password change ?

    Cpanelnick : you said the api2 has more than 200 functions, where did you get the list ?

    Thank you

    Dominique

Similar Threads & Tags
Similar threads

  1. Looking up cPanel API call parameters
    By cPanelMatt in forum cPanel Developers
    Replies: 2
    Last Post: 04-05-2010, 02:21 AM
  2. Change Password API from remote server?
    By jhyland87 in forum cPanel Developers
    Replies: 4
    Last Post: 06-07-2009, 08:10 AM
  3. API : call to change owner?
    By BartVenken in forum cPanel Developers
    Replies: 4
    Last Post: 11-26-2008, 04:10 AM
  4. API : call to change owner?
    By BartVenken in forum New User Questions
    Replies: 1
    Last Post: 11-25-2008, 02:53 PM
  5. API change password dont work
    By VCServer in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-21-2008, 03:41 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube