Security

Reply
Occasional Contributor II
Posts: 17
Registered: ‎02-11-2013

Issues with automatically supplying the MACTrac Device Address

So here is the Issue.

We are trying to auto populate the mac address in the field below.The only thing that we have found regarding the configuration is these steps:

Automatically Supplying the MACTrac Device Address

To ensure that the MAC address, device type, and browser vendor/version are prepopulated on the MACTrac Register

Device form, verify that these options are set in the Mobility Controller.

To set MACTrac prepopulating options:

1. Log in to the Mobility Controller.

2. In the Configuration tab, go to Security > Authentication in the left menu.

3. Click the L3 Authentication tab, then choose Captive Portal Authentication Profile > cpg-qa-captiveportal.

4. On the form, mark the check box in the Add switch IP address in the redirection URL row.

Guest Mactrac.jpgAny thoughts?

Occasional Contributor II
Posts: 17
Registered: ‎02-11-2013

Re: Issues with automatically supplying the MACTrac Device Address

We currently have our controller on 6.3. I didn't see the option to pass the mac to the captive portal. Is this located in same location as "Add switch IP address in the redirection URL"?

Aruba
Posts: 1,368
Registered: ‎12-12-2011

Re: Issues with automatically supplying the MACTrac Device Address

My apologies...this is not an option.  I was thinking too quickly!!!

 

 

Seth R. Fiermonti
Consulting Systems Engineer - ACCX, ACDX, ACMX
Email: seth@hpe.com
-----
If you found my post helpful, please give kudos
Aruba
Posts: 1,368
Registered: ‎12-12-2011

Re: Issues with automatically supplying the MACTrac Device Address

So...I don't think this is an option really as to automatically get the MAC, it is derived from a URL redirect.  If you are getting to this page, are you going through a redirect process on the controller?

Seth R. Fiermonti
Consulting Systems Engineer - ACCX, ACDX, ACMX
Email: seth@hpe.com
-----
If you found my post helpful, please give kudos
Occasional Contributor II
Posts: 17
Registered: ‎02-11-2013

Re: Issues with automatically supplying the MACTrac Device Address

Currently this is our setup:

The user connects to the SSID "GUEST"

After connecting to "GUEST", the user browseres to any website and then is redirected to byod.mosstele.com/guest

Capture.PNG

 

After the they are redirected, the user is prompted for his/her username and password

Capture2.PNG

After the user has been authenticated, they are redirected to the "Register Device" screen.

Capture3.PNG

 

 

Aruba
Posts: 1,368
Registered: ‎12-12-2011

Re: Issues with automatically supplying the MACTrac Device Address

I don't see the mac or the switch ip in the URL of the first page.  Regardless...this won't be carried over into the second device registration page unfortunately.

Seth R. Fiermonti
Consulting Systems Engineer - ACCX, ACDX, ACMX
Email: seth@hpe.com
-----
If you found my post helpful, please give kudos
Occasional Contributor II
Posts: 17
Registered: ‎02-11-2013
Guru Elite
Posts: 8,458
Registered: ‎09-08-2010

Re: Issues with automatically supplying the MACTrac Device Address

[ Edited ]

You can try rewriting the URL with PHP.

 

We ran into a similar issue where before the ClearPass login, we had an intermediate screen giving directions. When you select Guest vs Brandeis user button, you would lose all of the info in the URL.

 

It pretty much strips everything after the PHP and stores it to a variable which you can print out later on a new URL.

 

<?php
	function curPageURL() {
		$pageURL = 'http';
			if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
				$pageURL .= "://";
			if ($_SERVER["SERVER_PORT"] != "80") {
				$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
					} else {
						$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
					}
				return $pageURL;
			}
		$fullURL = curPageURL();
		$baseURL = strstr($fullURL, '?');
?>

 

<li><a href="https://<clearpass-fqdn>/guest/unknown-device-reg-sso.php<?php echo $baseURL; ?>"

 

 


Tim Cappalli | Aruba Security TME
@timcappalli | timcappalli.me | ACMX #367 / ACCX #480
Occasional Contributor II
Posts: 17
Registered: ‎02-11-2013

Re: Issues with automatically supplying the MACTrac Device Address

Hello,

Saw that I never updated my end result with this issue. I was apply to figure out that the problem was with the redirect on the controller. When I changed the page direclty to the mac creat page then the MAC address populated correctly. 

Search Airheads
Showing results for 
Search instead for 
Did you mean: