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.

Changing account password using PHP and XML-API

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

  1. larwilliams

    larwilliams Active Member

    Joined:
    Apr 14, 2008
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
Loading...

Share This Page