robb3369 Posted November 11, 2009 Share Posted November 11, 2009 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 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Product Manager WHMCS John Posted November 11, 2009 WHMCS Product Manager Share Posted November 11, 2009 Does the password you are changing to contain a symbol such as & or %? There does seem to be an issue with the cPanel API and special characters. 0 Quote Link to comment Share on other sites More sharing options...
robb3369 Posted November 11, 2009 Author Share Posted November 11, 2009 No, just random alpha/numeric characters like: 2JquhdF4Lc or l2lkzYvOFT 0 Quote Link to comment Share on other sites More sharing options...
robb3369 Posted November 17, 2009 Author Share Posted November 17, 2009 Got response from support: Edit the password - press save. Then press the change password button... 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.