Username Only Captive Portal
-
I am trying to setup Captive Portal to just take a username. This is for my guest network, where I don't care too much about authentication since I only open it when I expect guests, and the network is very much locked down.
I found this old post Show a username without Authentication from the past, but I can't figure out how to implement the patches properly.
Does anyone have experience implementing this?
-
@gtt1229 said in Username Only Captive Portal:
I am trying to setup Captive Portal to just take a username.
Why do you want to take a name ?
a) so the user can type in sjkdfhsqjfhskjhfsjkqsqjdfhsdqfjh and then you trow that name away, and have all user login using a generic name, common among all users ?
b) or do you want that name to match with an existing using, so "sjkdfhsqjfhskjhfsjkqsqjdfhsdqfjh" has to exist ?No need to patch the system, you can (have to) create your own 'html login page'.
The concept is shown here :To see the full html page, have the login page shown in your browser, and tell your browser to show the 'source' (and that is html of course, as that is what the browser received).
You could hide the real user name, and the real password. Just show a welcome message.
The hidden (not shown on the screen) user name and password will be used for all users to login. This user password pair has to be defined in the pfSense User manager.You'll have to set this :
otherwise an existing logged in user will get thrown of if some else is logging in.
Or, go for the
option. You can add a html field that asks for a name, phone number, or why not, ask for a credit card number **, as the entered text gets ditched anyway.
** I advise you to use https to show the portal login page, if not, you'll get hurt.