Hi, couple of questinos about using SMARTY in a clearpass guest environment.
1). we hada a requirement to provide a simple guest login page that allowed a user to register game console mac addresses . and nothing else. We also wanted to use a specific URL so the user didn't have to use the standard clearspass one.
With help from this list, what we ended up with was
{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">
{else} <meta http-equiv="refresh" content="0;url=http://clearpass8.york.ac.uk/tips/welcome.action">
{/if}
}
and it works just fine. Whatever the user types in gets you to a mac_create page and after a configuration you get a config receipt displayed.
We now want to expand on this by allowing a "Manage Devices" link to work ( which is also avaiable from the receipt page as a link displaying the mac address being registered.
Can't get thi to work, whatever I do gets me back to a login page and then mac_create.
I thought the following would work in my web login script ( well actually the nested if should check for "contains" and not "eq")
{if $smarty.server.SSL_TLS_SNI == 'mydevicesxb.york.ac.uk'}
{if $smarty.server.REQUEST_URI eq "/guest/mac_list.php"}
<meta http-equiv="refresh" content="0;url=https://mydevicesxb.york.ac.uk/guest/mac_list.php">
{/if}
{else} <meta http-equiv="refresh" content="0;url=http://clearpass8.york.ac.uk/tips/welcome.action">
{/if}
}
...but it doesn't
any help appreciated