Captive Portal - Terms of Service

Reply
Highlighted
L4 Transporter

Re: Captive Portal - Terms of Service

Wow what an interesting and creative hack to get a "Terms of service" portal to work with PA! I applaud your ingenuity on this one.

PA should really add this simple feature.

L2 Linker

Re: Captive Portal - Terms of Service

3 years later, does Palo have a cleaner way of doing this very common requirement?

Highlighted
L4 Transporter

Re: Captive Portal - Terms of Service

Hi

 

As most of You (from EU) knows tommrow GDRP will apply

 

Has anyone solution for PANOS 8.x for CaptivePortal with button to accept the terms and authentication?

Could You ahare it?

 

 

Regards

Slawek

Highlighted
L4 Transporter

Re: Captive Portal - Terms of Service

Hello

 

Noone is using such feature?  I'm pretty sure that You have solution ;) - please share it..

 

 

Regards

Slawek

Highlighted
L7 Applicator

Re: Captive Portal - Terms of Service

Hi @_slv_

 

Do you want to use captive portal only to show terms of service or do you require your users to log in?

Highlighted
L4 Transporter

Re: Captive Portal - Terms of Service

Hi @vsys_remo

 

I require that my users need to provide user name and passwword and I need checkbox for terms and conditions.

You need to check that checbox to be able to logon using proper credentials.

 

Regards

Slawek

Highlighted
L7 Applicator

Re: Captive Portal - Terms of Service

Hi @_slv_

 

Why don't you simply solve this with an additional checkbox on the caprove portal website? With a little javascript you could also make this checkbox mandatory so a login won't be possible unless the user agrees to your terms and conditions. 

Because paloalto gives you the ability to customize the loginpage there are theoretocally no limits for whatever you try to do (as long it is something webbased).

 

Edit: it doesn't even require javascript as there is an attribute "required" for html input objects.

Highlighted
L4 Transporter

Re: Captive Portal - Terms of Service

Hi @vsys_remo

 

>Why don't you simply solve this with an additional checkbox on the caprove portal website

 

This is what I'm looking for ... I'm not a "html" guy - so I need proper code that I will adopt for my requrements.

 

 

Regards

Slawek

Highlighted
L7 Applicator

Re: Captive Portal - Terms of Service

Hi @_slv_

 

Because of the way PaloAlto adds the actual login form into the captive portal loginwebsite, you probably need a little javascript.

This is the html code for a checkbox:

<input type="checkbox" name="terms" value="I accept Terms and conditions" required />

I know it is possible but because of the mentionned way paloalto adds the loginform I need to test this shortly in order to provide some html/javascript lines for your terms and conditions captive portal login.

Highlighted
L4 Transporter

Re: Captive Portal - Terms of Service

@vsys_remo

I need your help I think ...

 

Here is my code of shared config of CP

</head>
<body onload="loadPage();">
<table id="formtable">
<tr><td>
	<div id="activearea">
		<div id="heading">User Identification Portal</div>
		<div id="desc">Some text here</div>
		<input type="checkbox" id="terms" name="terms" value="I accept Terms and conditions" required />
		<a href="https://www.contoso.com/terms.pdf">I accept Terms and conditions.</a>
		<div id="desc">The resource you are trying to access requires proper user identification prior to access. Please enter your credentials.</div>
		<div id="formdiv">
			<pan_form/>
		<div id="desc"></div>
		</div>
		<div id="desc">Some text here</div>
		
	</div>
</td></tr>

I have two issues:

- if you provide wrong username/password it doesnt tell that credenatials are incorrect

- I can logon with proper credentials but without checking checkbox

 

How to correct it?

 

Help me please

 

Regards

Slawek

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!