Security

 View Only
  • 1.  Calculating attributes values

    Posted Dec 06, 2020 05:10 AM
    Hi,

    We wander if it is possible to fit or calculate legacy or custom attribute value using a simple programming way.

    For example, on captive portal context, ClearPass "receive" a value for AP Group Name. Using this value we want to do something like :

    if (Aruba-AP-Group == "group1") { $title = "Groupe 1 request" ; $sponsor_name = "groupe1_sponsor" ; $sponsor_address = "recpgroup1@domain.com" }

    if (Aruba-AP-Group == "group2") { $title = "Groupe 2 request" ; $sponsor_name = "groupe2_sponsor" ; $sponsor_address = "recpgroup2@domain.com" }

    If possible, what language may we use and where could we program it ? Calculated attributes may be used in forms or pages for guest self registration and create user pages.

    Regards,

    ------------------------------
    BILLOT Emmanuel
    ------------------------------


  • 2.  RE: Calculating attributes values

    Posted Dec 06, 2020 02:57 PM
    Bonjour Emmanuel,

    Web Page use PHP Smarty, can look this for make what do you need (but not sure if it is possible)

    you can also set multiple page...

    ------------------------------
    PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...

    PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)

    PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..

    ACEP / ACMX #107 / ACDX #1281
    ------------------------------



  • 3.  RE: Calculating attributes values

    Posted Dec 07, 2020 06:46 PM
    Just use some JavaScript.

    ------------------------------
    Tim C
    ------------------------------



  • 4.  RE: Calculating attributes values

    Posted Dec 08, 2020 04:14 PM
    but need to add check... (before javascript is run by client and not server...)

    ------------------------------
    PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...

    PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)

    PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..

    ACEP / ACMX #107 / ACDX #1281
    ------------------------------