Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Changing account password using PHP and XML-API

Discussion in 'cPanel Developers' started by larwilliams, Nov 30, 2010.

  1. larwilliams

    larwilliams Active Member

    Apr 14, 2008
    Likes Received:
    Trophy Points:
    I wrote a script a while back that uses the PHP XML-API class provided here to get a list of accounts from the server, and loop through them one by one and assign a random password and put it (encoded) into a database for later use by a master password list (used for some web designers).

    The problem is that, for some reason, it sets the password fine, but the moment someone accesses phpMyAdmin on an account, that account's password stops working. The only thing that gets it working is using the Password Modification function in WHM.

    Any thoughts? Perhaps an API function that I need to call, that I am not now?

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice