Knowledge Base > Article [0011]

How to Map a RADIUS Attributes to a User Attribute in DualShield

Users in DualShield have attributes such as the name of the domain they belong to, or the names of the groups they are member of, etc. Below is a list of commonly used user attributes:


-          loginName





For example, to map the RADIUS attribute IETF/User-Name to a user's login name:




Group Names


Group name is slightly more complicated. However. A user may be a member of more than one group, therefore the attribute "" will return an array of group names. If you needs it to print the list of name as a comma separated values then you need to use the "join" function:',')


If you just want the name of the first group, then it is:






The RADIUS attribute "class" has the data type called "octets". In DualShield, there is no such data type. You must use the hexadecimal value of the data or use the "bytes" function:


1.    If the value is a fixed value, use the hexadecimal form of the value. For example, if the value is "123", then use "313233".

2.    If the value is a dynamic value, use the function "bytes" to get the value. For example, ""




There are several other RADIUS attributes that are defined as "octets" Please refer to: