Security

 View Only
  • 1.  Hidden Field Initial Value Not Reflected in Manage Devices

    Posted Mar 10, 2021 08:41 AM
    Struggling a bit with airgroup_enable field in my mac_create form.
    The whole point of our use of ClearPass here is for personal airgroups, so when registering a device there's no need to select Airgroup Enable on the form's checkbox. Instead I'm trying to use the field as hidden with the airgroup selection already made, so that when a user looks at their list of devices they all show as 'Personal' in the Sharing column. At the moment I can't figure how to make this happen without displaying the field on the form.


    It looks like this config should do what I'm trying to do, but it doesn't

    and it results in

    when I'm expecting to see this


    If I select to edit the device that doesn't have a Sharing entry, the AirGroup checkbox is already selected, and without making any changes and clicking Update device, the Sharing column is updated with 'Personal.'

    And I can't find a form called mac_list to enable me to turn off the 'Shared With' field.

    It turns out I'm particularly poor at figuring CP out, and pointers to me straight here would be greatly appreciated.


    ------------------------------
    nathan millward
    ------------------------------


  • 2.  RE: Hidden Field Initial Value Not Reflected in Manage Devices

    Posted Mar 10, 2021 10:55 AM
    You need to set both airgroup_enable and airgroup_shared  with default values and then hide them.

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



  • 3.  RE: Hidden Field Initial Value Not Reflected in Manage Devices

    Posted Mar 10, 2021 11:10 AM
    Edited by n.millward Mar 10, 2021 11:12 AM
    Thanks for looking.
    I'm having a failure of logic here then. At the moment user A can see user B's devices. I don't want this, hence not enabling airgroup_shared.
    So I'll have a go at the setting below now then - set with Hidden and Force Value enabled to pull in the '0' initial value.

    Thanks in the mean time.

    ------------------------------
    nathan millward
    ------------------------------



  • 4.  RE: Hidden Field Initial Value Not Reflected in Manage Devices

    Posted Mar 10, 2021 11:13 AM
    airgroup_shared needs to be set to 0 which is "personal" which means only sessions with the same username can see the devices.

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



  • 5.  RE: Hidden Field Initial Value Not Reflected in Manage Devices

    Posted Mar 10, 2021 11:52 AM

    Reading your comment I took care to make sure the fields were default for airgroup_enable and for airgroup_shared, but both hidden - doing that leaves me with 'Disabled' where I'm expecting to see 'Personal' - and when I go to edit the device the AirGroup checkbox is empty



    So I left airgroup_shared at is defaults, hidden, and edited airgroup_enable to show Initial Value '1' and Force Value checked, but it's still not showing 'Personal' and when I go to edit the device the AirGroup checkbox is already checked (so the initial value I've just set isn't applying to the form I'm expecting it to apply to.)





    ------------------------------
    nathan millward
    ------------------------------



  • 6.  RE: Hidden Field Initial Value Not Reflected in Manage Devices

    Posted Mar 10, 2021 12:18 PM
    You need to set and force the initial value for both.

    You also need to update the Edit pages.

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



  • 7.  RE: Hidden Field Initial Value Not Reflected in Manage Devices

    Posted Mar 10, 2021 01:31 PM

    Thanks for the nudge. After setting both fields to Hidden, Initial Value 1, and Force Value checked, I get the result below, but I've disabled them for my mac_create form.


    Duplicating and then updating the mactrac_edit form has now cleaned up the presentation of the form as I'm taking AirGroup to be enabled by default. So this is nice progress.



    ------------------------------
    nathan millward
    ------------------------------



  • 8.  RE: Hidden Field Initial Value Not Reflected in Manage Devices

    Posted Mar 10, 2021 02:24 PM

    Looks I'll have to take the small progress with the edit device form back - introduced new problem

    I'll keep picking away at it.



    ------------------------------
    nathan millward
    ------------------------------