Jump to content

Change password in cpanel module works but doesn't store new password


robb3369

Recommended Posts

When using the "Change Password" button in the cpanel server module, the module reports "Service Password Changed Successfully" and a password change does take effect (the /etc/shadow file is updated on the server). However, on the Product/Services page, the password shown never changes and the password stored in the tblhosting table never changes... however, the password displayed DOES work...

 

It appears that the existing password stored in the tblhosting table gets updated first and then used in the api call to change the password, which is successful everytime. Here are the entries from the /usr/local/cpanel/logs/access_log indicating a 200 response...

74.xx.xx.xx - root [11/11/2009:14:41:38 -0000] "GET /xml-api/passwd?user=username&pass=__HIDDEN__ HTTP/1.1" 200 0 "" ""
74.xx.xx.xx - root [11/11/2009:14:55:24 -0000] "GET /xml-api/passwd?user=username&pass=__HIDDEN__ HTTP/1.1" 200 0 "" ""
74.xx.xx.xx - root [11/11/2009:15:09:12 -0000] "GET /xml-api/passwd?user=username&pass=__HIDDEN__ HTTP/1.1" 200 0 "" ""
74.xx.xx.xx - root [11/11/2009:15:18:51 -0000] "GET /xml-api/passwd?user=username&pass=__HIDDEN__ HTTP/1.1" 200 0 "" ""
74.xx.xx.xx - root [11/11/2009:15:28:08 -0000] "GET /xml-api/passwd?user=username&pass=__HIDDEN__ HTTP/1.1" 200 0 "" ""

 

However, getting the password actually changed and put into the tblhosting table seems to be the issue. Why wouldn't the process be reversed and attempt to change the password first, and if successful, THEN update the WHMCS table?

 

Or am I missing something :?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated