Unable to login using webgui in version 24.7

Started by opncovfefe, August 11, 2024, 07:53:17 AM

Previous topic - Next topic
August 11, 2024, 07:53:17 AM Last Edit: August 11, 2024, 08:09:01 AM by opncovfefe
Just did a brand new install of OPNSense 24.7. 

I can use the username "root" and my new password to log into console but can't log into webgui.  It keept saying unknown username or password.  The password had special characters (~!@#$%^&*) so removed them all and only used alphanumeric characters. Now I can log into both console and webgui.

What characters are allowed for the password so it works in both console and webgui? It will be disappointing if we can't use special characters.

My guess is it's your local browser or OS combining accent keys with regular letters, e.g. that caret/circumflex: ^

Have you tried typing the password in the username field to watch what happens?
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Just a guess: You do not use an english keyboard layout, do you? Maybe you did not notice that the special characters where all wrong, because in password entry fields, they are being masked. "Dead" keys like accents are a problem, too.

That is why I always use a "safe set" of characters for initial setup (i.e. when there is no web interface) and change that later on. For german keyboards, you can use A-X,a-x,0-9 and ".", in case a special character is mandatory. The locations of those characters are the same on german/english keyboards.
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 800 up, Bufferbloat A+

I selected the default keyboard layout for English or whatever is for USA.  The OS is windows 10, and i use firefox but also tried on Edge with the same result.  The password didn't have the ^ character.  Haven't figured out which special character actually caused this. 

In the end it's always the keyboard mapping mismatching.


Cheers,
Franco

August 19, 2024, 10:51:22 AM #5 Last Edit: August 20, 2024, 03:34:02 AM by opncovfefe
You are correct but not sure if it's a keyboard mapping.

I can't type any special character in the console.  If I press Shift + 4, it supposed to print '$' but I only see number 4.  My original password was Test$Test$$ but at the password prompt, it is Test4Test44 which I couldn't see.  Obviously the password Test$Test$$ won't work in gui because the actual password is Test4Test44   

OPNSense is running inside a Proxmox VM.  I'm not sure if proxmox has anything to do with it. For now the password is a long alphanumeric passphrase.  I would like to add some special characters for extra security.  Is there any fix for this?  Thanks

Quote from: opncovfefe on August 19, 2024, 10:51:22 AM
OPNSense is running inside a Proxmox VM.  I'm not sure if proxmox has anything to do with it.
Yes it does. What is your physical keyboard layout, and what is set in Proxmox's: Datacenter|Options|Keyboard Layout please? And the layout inside the VM.

Found the fix for my issue.  It has to do with the Firefox I'm using and possibly in Edge too.  I had to disable the "privacy.resistFingerprinting" config in firefox and now I can type special characters in the console.  Thanks for your help. 

Well, I was not expecting something like that.
Thanks for sharing.