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.
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!
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!
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.
I'm interested to know as well![]()
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
I'm the author of this class:
http://ayion.mirrors.phpclasses.org/...kage/3534.html
It can change cPanel account passwords through PHP.
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!
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!
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!
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
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!
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!