Security

last person joined: yesterday 

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

Can i use an operator login profile in a smarty statement?

This thread has been viewed 1 times
  • 1.  Can i use an operator login profile in a smarty statement?

    Posted Sep 13, 2018 08:46 AM

    Our ClearPass Guest page has a context dependent menu column on the RHS.

    When logging in, all you see is a bullet point titled "mydevices"

     

    Once logged in you get 2 menu options :-

    • Register Device
    • List Devices

    Our IT Servics Help Desk have read only access to mac_list tailored so they can see everyones registration. They cannot register devices.

     

    To get this to work I've creeated an operator Login/Operator Profile/UoY ITSO which displays the appropriate info.

     

    In the custom skin I use, the page menu bar is currently defined as

     

    {if strpos($smarty.server.REQUEST_URI,'auth_login.php') == false}

    <ul class="apNav2"><li class="apNavActive apNavL2A"><a href="mac_create.php" class="apNavActive">Register Device</a></li><li class="apNavActive apNavL2A"><a href="mac_list.php" class="apNavActive">List Devices</a></li>
    {/if}
    </ul>

    i.e for anything other than the login page, display 2 urls.

     

    Can I add a smarty conditional here that checks the operator login profile used to decide whether to display a menu item or not?

     

    Rgds

    Alex