Security

Reply
MVP Expert

Help with smarty functionality - URL redirection

Our ClearPass Guest device registration pages seem to be good to go. In a web login page I've got

 

{if $smarty.server.SSL_TLS_SNI == 'mydevicesxb.york.ac.uk'}
<meta http-equiv="refresh" content="0;url=https://mydevicesxb.york.ac.uk/guest/mac_create.php">
{elseif .....

 

So anything using FQDN https://mydevicesxb.york.ac.uk/ gets redrected to

 

https://mydevicesxb.york.ac.uk/guest/mac_create.php

 

That's all and well, but at some point what the user sees nees to be expanded to using other mydevicesxb .... URLs, e.g. being able to modify / delete any of your registered devices. While I can set this up in ClearPass Guest, its a bit pointless if the smarty script just redirects things to ...mac_create.php

 

What would be the smarty code to check for 

 

if url=https://mydevicsxb.york.ac.uk/ then .....mac_create.php

else if url:https://mydevicesxb.york.ac.uk/<some other path> then allow access to the supplied URL?

 

Rgds

Alex

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