ClearPass redirection to different Onguard Installation page based on Endpoint Profiling.

Clearpass Redirection to different page based on Endpoint Profiling.

 

The tips_endpoint_profiles table in the Clearpass database has the endpoint profiling information.

If you want to check the attributes related to the user just paste the html dump in the page.

{dump var=$_endpoint export=html}

Example:

The below endpoint has been profiles using http agent.

ArubaCPPMOnguardTutorial

 

 

Now in order to check the attributes in a page I will add the html dump on a test page.

 

Below is the Output displayed on the page.

array (

‘id’ => ‘3991’,

‘description’ => NULL,

‘mac_address’ => ‘e8150e0df5d9’,

‘status’ => ‘Unknown’,

‘added_by’ => ‘Policy Manager’,

‘added_at’ => ‘2016-03-07 08:00:06.56252+05:30’,

‘org_id’ => ‘1’,

‘permit_id’ => ‘1’,

‘profile_id’ => ‘988’,

‘profile_ip’ => ‘45.125.37.5’,

‘profile_static_ip’ => ‘f’,

‘profile_hostname’ => NULL,

‘profile_username’ => NULL,

‘profile_nad_ip’ => NULL,

‘profile_mac_vendor’ => ‘Nokia Corporation’,

‘profile_device_category’ => ‘SmartDevice’,

‘profile_device_family’ => ‘Windows’,

‘profile_device_name’ => ‘Nokia Lumia’,

‘profile_fingerprint’ =>

array (

‘host’ =>

array (

‘user_agent’ => ‘Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 630) like iPhone OS 7_0_3 Mac OS X AppleWebKit/537 (KHTML, like Gecko) Mobile Safari/537||Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36’,

),

),

‘profile_updated_at’ => ‘2016-10-19 09:19:12.142918+05:30’,

‘profile_added_at’ => ‘2016-03-07 08:00:04.543109+05:30’,

)

 

 

Now I would be able to use this in the HTML as I want with $_endpoint.”attributename”

One of our customer wanted redirection to different pages based on the Profiling. I used the below HTML code for redirection:

 

<center>

{if $_endpoint.profile_device_category ==”SmartDevice”}

<meta http-equiv=”refresh” content=”0;url=/guest/Smartphone.php?”>

{elseif $_endpoint.profile_device_family ==”Apple Mac”}

<meta http-equiv=”refresh” content=”0;url=/guest/macagent.php?”>

{elseif $_endpoint.profile_device_name ==”Linux Device”}

<meta http-equiv=”refresh” content=”0;url=/guest/linuxagent.php?”>

{elseif $_endpoint.profile_device_family ==”Windows”}

<meta http-equiv=”refresh” content=”0;url=/guest/windowsagent.php?”>

{/if}

 

 

Hope this was helpful ! Cheers !

Sushanth M

Leave a Comment

Your email address will not be published. Required fields are marked *

Related Posts

Wireless Survey

Table of contents: The document covers what is a wireless survey, why wireless survey, the