Security

Reply
Contributor II
Posts: 38
Registered: ‎11-24-2014

Clearpass 6.4 php code support

I have custom php page hosted in clearpass public directory. All codes are html, but I have few lines using php.

 

With clearpass 6.4, php tag is no longer supported.  Basically what I want to achieve is pass the page url to href in <a></a> link in the same webpage. Is there a workaround on using php? or any other alternative scripting language supported by clearpass 6.4?

 

Contributor II
Posts: 38
Registered: ‎11-24-2014

Re: Clearpass 6.5 php code support

I mean clearpass 6.5.

Aruba
Posts: 1,542
Registered: ‎06-12-2012

Re: Clearpass 6.5 php code support

I would post an example of your code
Thank You,
Troy

--Give Kudos: found something helpful, important, or cool? Click Kudos Star in a post.

--Problem Solved? Click "Accepted Solution" in a post.
Contributor II
Posts: 38
Registered: ‎11-24-2014

Re: Clearpass 6.5 php code support

php code:

<?php

?>

this is broken on clearpass 6.5

 

 

 

 

Guru Elite
Posts: 21,018
Registered: ‎03-29-2007

Re: Clearpass 6.5 php code support

Not broken, but removed, according to the release notes with 6.5.  Are you trying to do something before login or after login?



Colin Joseph
Aruba Customer Engineering

Looking for an Answer? Search the Community Knowledge Base Here: Community Knowledge Base

Contributor II
Posts: 38
Registered: ‎11-24-2014

Re: Clearpass 6.5 php code support

Before login, I have some customization script...I capture the page url   https://cppm.com?mac=xxxx and

use php to write this code on the page link.  Since php is not supported anymore, my custom captive portal page is broken.

 

Is there a workaround on this issue?

Guru Elite
Posts: 21,018
Registered: ‎03-29-2007

Re: Clearpass 6.5 php code support

There is not a workaround for this, unfortunately.



Colin Joseph
Aruba Customer Engineering

Looking for an Answer? Search the Community Knowledge Base Here: Community Knowledge Base

Community Administrator
Posts: 33
Registered: ‎11-01-2012

Re: Clearpass 6.5 php code support

Actually, there is a workaround. Just know that you are exposing your system to potential security risks by re-enabling the {php} feature. We suggest that you find another way to accomplish what you need.

 

Within CP Guest, go to Administration > Plugin Manager. Click Configuration under Kernel Plugins > Kernel. For the item Template Scripting you will find three choices. These choices control the usage of {php} tags.

 

Secure (the default, prevents usage of {php} tags)

Insecure - Enable templating engine (allows use of {php} tags)

Warn - Allow but log usage of restricted calls (self explanatory)

Contributor II
Posts: 38
Registered: ‎11-24-2014

Re: Clearpass 6.5 php code support

Will enabling this option allow php code in a page in https://cppm/guest/public/test.php to run? 

I enable this option but it does run the php code in test.php. 

 

Contributor II
Posts: 38
Registered: ‎11-24-2014

Re: Clearpass 6.5 php code support

Its working now. I have to restart the clearpass.

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