Security

last person joined: 2 days ago 

Forum to discuss Enterprise security using HPE Aruba Networking NAC solutions (ClearPass), Introspect, VIA, 360 Security Exchange, Extensions, and Policy Enforcement Firewall (PEF).

Help with smarty functionality - URL redirection

This thread has been viewed 0 times
  • 1.  Help with smarty functionality - URL redirection

    Posted Sep 06, 2018 05:25 AM

    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