News: This forum is now permanently frozen.
Pages: [1]
Topic: Probelem with Captive Portal login page  (Read 5681 times)
« on: March 05, 2010, 00:17:20 »
Thunder *
Posts: 2

I'm having problems with the login page for clients after captive portal is enabled.  Once enabled, a web page with text on it loads with a continue button.  There are no fields to enter either a user name or password.  When I click continue, I just get an error stating the user name and password are invalid.  Here is the exact text of what I see on the first page:

m0n0wall captive portal
This is the default captive portal page.  Please upload your own custom HTML file on the Services: Captive portal screen in the m0n0wall webGUI.

I was assuming the default page to be simple, but still function with appropriate fields.  I saw a video on youtube here:
http://www.youtube.com/watch?v=2X-4JWzR4U4

This video shows setting up Captive Portal and it does have a default web page that works.  It just has two text fields for data and a button to process it.  I have tried this on Windows 7/Firefox 3.6 and Windows7/IE8.  both produce the same situation.

While turning on Captive Portal I have checked the user authentication and not radius.  Also, I went in and set up a test user.  

I'm not sure what's going on.  Does it really not come with a functional default login page and I need to create one or is there another cause for this issue?  Thanks.
« Reply #1 on: March 05, 2010, 02:42:42 »
knightmb ****
Posts: 341

I'm not sure what's going on.  Does it really not come with a functional default login page and I need to create one or is there another cause for this issue?  Thanks.
Yes, you need to create an index.html file that has the code in it just as the directions say in the captive portal configuration.  Grin

Quote
Upload an HTML file for the portal page here (leave blank to keep the current one). Make sure to include a form (POST to "$PORTAL_ACTION$") with a submit button (name="accept") and a hidden field with name="redirurl" and value="$PORTAL_REDIRURL$". Include the "auth_user" and "auth_pass" and/or "auth_voucher" input fields if authentication is enabled, otherwise it will always fail. Example code for the form:

<form method="post" action="$PORTAL_ACTION$">
   <input name="auth_user" type="text">
   <input name="auth_pass" type="password">
   <input name="auth_voucher" type="text">
   <input name="redirurl" type="hidden" value="$PORTAL_REDIRURL$">
   <input name="accept" type="submit" value="Continue">
</form>

Radius Service for m0n0wall Captive Portal - http://amaranthinetech.com
« Reply #2 on: March 05, 2010, 19:41:17 »
Thunder *
Posts: 2

 Cheesy

Worked perfectly.  Thanks.
 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines