bhyve-webadmin icon indicating copy to clipboard operation
bhyve-webadmin copied to clipboard

Changing password for admin user does not work

Open strandte opened this issue 1 year ago • 5 comments

I have a clean FreeBSD 14 installation where I have installed bhyve and bhyve-webadmin. When I logged in I was not able to change the password for admin. The issue is similar to this one: https://github.com/DaVieS007/bhyve-webadmin/issues/22 In addition my root account is now locked out, even if I did not use it. I managed to register two users, but none of them are able to log in to the web interface. Do someone have a clue what might be wrong? I use the release version of bhyve-webadmin.

strandte avatar Jan 24 '24 17:01 strandte

Please allow us some time to reproduce the issue, in the meantime you able to change your password under Users Management section. YOUR_IP:8086/admin/users

If your account is locked out, you can restart the service daemon which will flush all bans, by issuing: service bvcp-frontend restart

Any other circumstances the CLI interface could be very handy, by issuing: /var/lib/nPulse/BVCP/Backend/vmm cli

DaVieS007 avatar Jan 24 '24 18:01 DaVieS007

Thanks for the good clues to what I could do to solve this. I found out that the two users was actually able to log in, only I had to use the mail address as username. My advice would be for you to make a grayed out tip in the username textbox hinting to email address as login/user. The first time we log in we use "admin" as login, so I was led to believe that a similar username would be used for the other users as well.

strandte avatar Jan 24 '24 21:01 strandte

The root user was not locked out. I'm not so familiar with FreeBSD yet, so it took some time to release that I could not login via ssh with root, and that I was not able to use "su" or "sudo" without installing and configuring this. Do we actually need the "Admin" user we log in with the first time, or is this account only used this one time and later disabled automatically? The password change that did not work was for this "Admin" user. Maybe this is the intention, since it seems to be a one time user?

strandte avatar Jan 24 '24 21:01 strandte

The admin user is not a one-time thing. You can set a proper email address on the administration section, then you are allowed to change the password. We will make a fancy UI in version 2.0 to address this for any newcomers.

DaVieS007 avatar Jan 24 '24 22:01 DaVieS007

Thanks for the quick answers. The Web-GUI BVCP/bhyve-WebAdmin looks nice. I will test it out the next days. If it hadn't been for your work on this I do not think I would have chosen Bhyve even if it has some pretty nice features when compared to the competitors. Hope others see this also, and that your work will contribute to it's market share.

strandte avatar Jan 24 '24 22:01 strandte

Thanks your review about BVCP, after all I think you will love the version 2.0.0 which has better, faster and more stable UI. Also I'm commenting here due in fact the original problem is solved by adding alert and modal for get rid of admin as invalid email.

Screenshot_320 Screenshot_321

DaVieS007 avatar Feb 18 '24 00:02 DaVieS007