< Back

Set-JCRadiusReplyAttribute

Thu Jan 16, 2020 9:18 am

NAME Set-JCRadiusReplyAttribute



SYNOPSIS

Updates or adds Radius reply attributes to a JumpCloud user group.





SYNTAX

Set-JCRadiusReplyAttribute [-GroupName] <System.String> -Attribute1_name <System.String> -Attribute1_value

<System.String> -Attribute2_name <System.String> -Attribute2_value <System.String> [-NumberOfAttributes

<System.Int32>] [-VLAN <System.String>] [-VLANTag {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14

| 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31}] [<CommonParameters>]





DESCRIPTION

Updates or adds Radius reply attributes to a JumpCloud user group. User authentication Radius requests will return

with the Radius reply attributes configured on the JumpCloud user groups which associates the user to JumpCloud

Radius. Any RADIUS reply attributes configured on a JumpCloud user group which associates a user to a RADIUS

server will be returned in the Access-Accept message sent to the endpoint configured to authenticate with

JumpCloud Radius. If a user is a member of more then one JumpCloud user group associated with a given RADIUS

server all Reply attributes for the groups that associate the user to the RADIUS server will be returned in the

Access-Accept message. If a user is a member of more then one JumpCloud user group associated with a given RADIUS

server and these groups are configured with conflicting RADIUS reply attributes then the values of the attributes

for the group that was created most recently will be returned in the Access-Accept message. RADIUS reply attribute

conflicts are resolved based on the creation date of the user group where groups that are created more recently

take precedent over older groups. Conflicts occur when groups are configured with the same RADIUS reply attributes

and have conflicting attribute values. RADIUS reply attributes with the same attribute names but different tag

values do not create conflicts.





PARAMETERS

-Attribute1_name <System.String>

Enter an attribute name



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Attribute1_value <System.String>

Enter an attribute value



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Attribute2_name <System.String>

Enter an attribute name



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Attribute2_value <System.String>

Enter an attribute value



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-GroupName <System.String>

The JumpCloud user group to add or update the specified Radius reply attributes on.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-NumberOfAttributes <System.Int32>

The number of RADIUS reply attributes you wish to add to a user group.



If an attributes exists with a name that matches the new attribute then the existing attribute will be updated.



Based on the NumberOfAttributes value two Dynamic Parameters will be created for each Attribute:

Attribute_name and Attribute_value with an associated number.



See an example for working with Custom Attribute in EXAMPLE 3 above.



Attributes must be valid RADIUS attributes. Find a list of valid RADIUS attributes within the dictionary files

of this repro broken down by vendor: github.com/FreeRADIUS/freeradius-server/tree/v3.0.x/share



If an invalid attribute is configured on a user group this will prevent users within this group from being

able to authenticate via RADIUS until the invalid attribute is removed.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-VLAN <System.String>

By specifying the '-VLAN' parameter three radius attributes are added or updated on the target user group.



These attributes and values are are:



name value



---- -----



Tunnel-Medium-Type IEEE-802



Tunnel-Type VLAN



Tunnel-Private-Group-Id VALUE of -VLAN The value specified for the '-VLAN' parameter is populated for the

value of Tunnel-Private-Group-Id .



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-VLANTag <System.String>

Specifies the VLAN id which is applied to all attribute names.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String





System.Int32







OUTPUTS

System.Object







NOTES









-------------------------- Example 1 --------------------------



Set-JCRadiusReplyAttribute -GroupName "BoulderOffice" -VLAN 24



By specifying the '-VLAN' parameter three radius attributes are updated on the JumpCloud user group

'BoulderOffice'.



These attributes are:



name value ---- ----- Tunnel-Medium-Type IEEE-802 Tunnel-Type

VLAN Tunnel-Private-Group-Id 24



The value specified for the '-VLAN' parameter is populated for the value of Tunnel-Private-Group-Id .

-------------------------- Example 2 --------------------------



Set-JCRadiusReplyAttribute -GroupName "BoulderOffice" -VLAN 24 -VLANTag 4



By specifying the '-VLAN' parameter three radius attributes are update on the JumpCloud user group

'BoulderOffice'. The use of '-VLANTag' appends each VLAN attribute name with a colon and the tag number specified.



These attributes are:



name value ---- ----- Tunnel-Medium-Type:4 IEEE-802 Tunnel-Type:4

VLAN Tunnel-Private-Group-Id:4 24

-------------------------- Example 3 --------------------------



Set-JCRadiusReplyAttribute -GroupName "BoulderOffice" -NumberOfAttributes 2 -Attribute1_name "Session-Timeout"

-Attribute1_value 200 -Attribute2_name "Termination-Action" -Attribute2_value 2



Updates two Radius attributes to the JumpCloud user group 'BoulderOffice'.



These attribute are:



name value ---- ----- Session-Timeout 200 Termination-Action 2



The parameter '-NumberOfAttributes' is a dynamic parameter that generates two required parameters for each custom

attribute specified. In this example these parameters are -Attribute1_name,-Attribute1_value, -Attribute2_name and

-Attribute2_value.



If the Radius reply attribute being updated already exists on the target user group the value for this attribute

is updated. If the Radius reply attribute does not exist the attribute is added.



RELATED LINKS

Online Version: https://github.com/TheJumpCloud/support ... yAttribute