Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section Scripting / API
  • Search

WHMCS Module changing admin password

Questions regarding the API
Application Programming Interface
Locked
  • Print view
Advanced search
5 posts • Page 1 of 1
strato
Posts: 15
Joined: Tue Aug 25, 2015 9:44 pm

WHMCS Module changing admin password

Post by strato » Sun Nov 08, 2015 3:24 pm

Hello Team,
I have noticed lately that when my WHMCS module runs automatically to suspend an account it changes my admin password for vesta. I use the admin account for the module in whmcs and I can successfully suspend an account but then i have to go back in a reset the admin password to run unsuspend. Below are from the module logs

suspendaccount - https://###.##########.us:8083/api/user=admin&password=########&hash=&cmd=v-suspend-user&arg1=learn - ok

unsuspendaccount - https://###.##########.us:8083/api/user=admin&password=########&hash=&cmd=v-unsuspend-user&arg1=learn - Error: authentication failed


What can I do to fix this, or is this a bug?

I am using WHMCS Version: 6.1.1

Vesta
core package
Version:0.9.8 (amd64)
Release:15

Ubuntu
Ubuntu 14.04 (x86_64)
Last edited by strato on Sun Nov 08, 2015 4:26 pm, edited 2 times in total.
Top

strato
Posts: 15
Joined: Tue Aug 25, 2015 9:44 pm

Re: WHMCS Module changing admin password

Post by strato » Sun Nov 08, 2015 4:11 pm

Here is the log file from /var/log/vesta/system.log

##########@###:~# tail -f /var/log/vesta/system.log
2015-11-08 10:03:25 v-suspend-web-domain account account.com no
2015-11-08 10:03:25 v-suspend-web-domains account
2015-11-08 10:03:26 v-suspend-dns-domain account account.com no
2015-11-08 10:03:25 v-suspend-dns-domains account
2015-11-08 10:03:26 v-suspend-mail-domain account account.com
2015-11-08 10:03:26 v-suspend-mail-domains account
2015-11-08 10:03:26 v-suspend-database account account_press
2015-11-08 10:03:26 v-suspend-databases account
2015-11-08 10:03:26 v-suspend-cron-jobs account
2015-11-08 10:03:16 v-suspend-user account
2015-11-08 10:04:45 v-change-user-password admin ****** <---- This is when I had to reset the admin password via the portal, not part of the automation!
2015-11-08 10:05:11 v-unsuspend-web-domain account account.com no
2015-11-08 10:05:11 v-unsuspend-web-domains account
2015-11-08 10:05:12 v-unsuspend-dns-domain account account.com no
2015-11-08 10:05:12 v-unsuspend-dns-domains account
2015-11-08 10:05:12 v-unsuspend-mail-domain account account.com
2015-11-08 10:05:12 v-unsuspend-mail-domains account
2015-11-08 10:05:12 v-unsuspend-database account account_press
2015-11-08 10:05:12 v-unsuspend-databases account
2015-11-08 10:05:12 v-unsuspend-cron-jobs account
2015-11-08 10:04:55 v-unsuspend-user account
Top

strato
Posts: 15
Joined: Tue Aug 25, 2015 9:44 pm

Re: WHMCS Module changing admin password

Post by strato » Mon Nov 09, 2015 11:33 pm

Has no one ever run across this?
Top

strato
Posts: 15
Joined: Tue Aug 25, 2015 9:44 pm

Re: WHMCS Module changing admin password

Post by strato » Tue Nov 10, 2015 5:08 pm

Mark as solved!

So after doing some digging in WHMCS, I forgot to add the new vestacp host as whitelisted for api access. After doing that yesterday, not knowing it fixed the issue, I decided today to try and watch the vesta/system.log and also watch the var/log/auth.log and ran a suspend and unsuspend without issues.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: WHMCS Module changing admin password

Post by skurudo » Fri Sep 23, 2016 12:39 pm

Closed.
Top


Locked
  • Print view

5 posts • Page 1 of 1

Return to “Scripting / API”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password