SurePassID RADIUS Server
Custom Attribute User Guide
SurePassID RADIUS Server - Custom Attributes User Guide
Overview
The SurePassID RADIUS Server supports custom RADIUS attributes that are included in Access-Accept responses. This feature allows administrators to configure both standard RADIUS attributes and Vendor-Specific Attributes (VSAs) to be returned to RADIUS clients upon successful authentication.
Custom attributes are commonly used for:
- Assigning users to VPN groups using
Filter-Id - Setting session timeouts with
Session-Timeout - Configuring Cisco privilege levels with VSAs
- Defining network access policies
- Integrating with network equipment that requires specific RADIUS response attributes
Configuration Methods
Custom RADIUS attributes can be configured using two methods:
- Configuration Manager UI (Recommended) - A graphical interface for managing attributes
- Manual XML Configuration - Direct editing of the
config.xmlfile
Using the Configuration Manager UI
Accessing Custom Attributes
- Open the SurePassID RADIUS Configuration Manager
- Navigate to the RADIUS Settings tab
- Click the Custom Attributes... button in the Settings group
Main Dialog
The Custom Attributes dialog displays all configured attributes in a list:
+----------------------------------------------------------+
| Custom RADIUS Attributes [X] |
+----------------------------------------------------------+
| Attributes included in Access-Accept responses: |
| +----------------------------------------------------+ |
| | Filter-Id = "VPN-Users" (String) | |
| | Session-Timeout = 3600 (Integer) | |
| | [VSA] Cisco (9) Type 1 = "shell:priv-lvl=15" | |
| +----------------------------------------------------+ |
| |
| [Add Standard...] [Add Vendor...] [Edit] [Remove] |
| |
| [OK] [Cancel] |
+----------------------------------------------------------+
Adding a Standard Attribute
- Click Add Standard...
- Select an attribute from the dropdown (e.g.,
Filter-Id,Session-Timeout)- Or enter a numeric type (1-255) for attributes not in the list
- Enter the Value for the attribute
- The Data Type is auto-detected based on the attribute but can be overridden
- Click OK to add the attribute
Note: Certain internal attributes cannot be configured:
User-Name(Type 1)User-Password(Type 2)CHAP-Password(Type 3)Reply-Message(Type 18)State(Type 24)Proxy-State(Type 33)Message-Authenticator(Type 80)
Adding a Vendor-Specific Attribute (VSA)
- Click Add Vendor...
- Enter the Vendor ID (IANA enterprise number)
- Common values: 9 (Cisco), 311 (Microsoft), 2636 (Juniper)
- Enter the Vendor Type (1-255)
- Optionally enter a Name for display purposes
- Enter the Value
- Select the appropriate Data Type
- Click OK to add the attribute
Editing Attributes
- Select an attribute in the list
- Click Edit (or double-click the attribute)
- Modify the values as needed
- Click OK to save changes
Removing Attributes
- Select the attribute to remove
- Click Remove
- Confirm the deletion when prompted
Saving Changes
- Click OK to save all changes and close the dialog
- Click Cancel to discard changes
Important: After making changes, click Save in the main Configuration Manager to persist the configuration to disk.
Manual XML Configuration
Custom attributes are stored in the config.xml file
within the <CustomAttributes> section under
<radius>.
File Location
The configuration file is typically located at:
C:\ProgramData\SurePassID\RadiusServer\config.xml
XML Structure
<appSettings>
<radius>
<!-- Other RADIUS settings -->
<CustomAttributes>
<!-- Standard Attributes -->
<Attribute type="11" value="VPN-Users" dataType="String" name="Filter-Id" />
<Attribute type="27" value="3600" dataType="Integer" name="Session-Timeout" />
<!-- Vendor-Specific Attributes -->
<VendorAttribute vendorId="9" vendorType="1" value="shell:priv-lvl=15"
dataType="String" name="Cisco-AV-Pair" />
<VendorAttribute vendorId="311" vendorType="10" value="VPN-Group"
dataType="String" name="MS-Filter" />
</CustomAttributes>
</radius>
</appSettings>Standard Attribute Element
| Attribute | Required | Description |
|---|---|---|
type |
Yes | RADIUS attribute type (1-255) or standard name (e.g., "Filter-Id") |
value |
Yes | The attribute value |
dataType |
No | Data type: String, Integer,
IPv4, or Octets (default: auto-detected or
String) |
name |
No | Display name for logging/documentation |
Vendor Attribute Element
| Attribute | Required | Description |
|---|---|---|
vendorId |
Yes | IANA enterprise number (e.g., 9 for Cisco) |
vendorType |
Yes | Vendor-specific type code (1-255) |
value |
Yes | The attribute value |
dataType |
No | Data type: String, Integer,
IPv4, or Octets (default: String) |
name |
No | Display name for logging/documentation |
Standard Attributes
The following standard RADIUS attributes are commonly used:
| Attribute Name | Type | Data Type | Description |
|---|---|---|---|
| Filter-Id | 11 | String | Used to assign users to groups (e.g., VPN groups) |
| Session-Timeout | 27 | Integer | Maximum session time in seconds |
| Idle-Timeout | 28 | Integer | Maximum idle time before disconnect |
| Service-Type | 6 | Integer | Type of service (e.g., 6=Administrative) |
| Framed-IP-Address | 8 | IPv4 | Assigned IP address |
| Framed-IP-Netmask | 9 | IPv4 | Subnet mask for assigned IP |
| Class | 25 | Octets | Accounting class value |
| Tunnel-Type | 64 | Integer | Tunnel protocol type |
| Tunnel-Medium-Type | 65 | Integer | Tunnel transport medium |
| Tunnel-Private-Group-Id | 81 | String | Private group for tunnel |
Note: By default, the RADIUS server sets
Service-Type = 6 (Administrative) in Access-Accept
responses. If you define Service-Type in custom attributes,
your value will override the default.
Vendor-Specific Attributes (VSAs)
Common Vendor IDs
| Vendor ID | Vendor Name |
|---|---|
| 9 | Cisco |
| 311 | Microsoft |
| 2636 | Juniper Networks |
| 4874 | Unisphere |
| 25506 | HP/H3C |
| 14988 | MikroTik |
| 529 | Ascend |
| 3076 | Altiga/Cisco VPN 3000 |
Cisco VSA Examples
Privilege Level:
<VendorAttribute vendorId="9" vendorType="1"
value="shell:priv-lvl=15"
dataType="String"
name="Cisco-AV-Pair" />Access Control List:
<VendorAttribute vendorId="9" vendorType="1"
value="ip:inacl#1=permit ip any any"
dataType="String"
name="Cisco-AV-Pair" />Microsoft VSA Examples
MS-MPPE-Send-Key (for encrypted connections):
<VendorAttribute vendorId="311" vendorType="16"
value="<hex-encoded-key>"
dataType="Octets"
name="MS-MPPE-Send-Key" />Data Types
| Data Type | Description | Example Value |
|---|---|---|
| String | ASCII text (default) | VPN-Users |
| Integer | 32-bit unsigned integer | 3600 |
| IPv4 | IPv4 address | 192.168.1.1 |
| Octets | Raw binary (hex-encoded) | 0A1B2C3D |
Integer Values
Integer values are encoded as 4-byte big-endian values per RFC 2865.
Octets Format
Octets should be specified as hexadecimal strings without spaces or dashes:
<Attribute type="25" value="0A1B2C3D4E5F" dataType="Octets" name="Class" />Common Use Cases
VPN Group Assignment
Assign users to a VPN group using Filter-Id:
<Attribute type="11" value="CN=VPN-Users,OU=Groups,DC=example,DC=com"
dataType="String" name="Filter-Id" />Session Timeout
Set a 1-hour session timeout:
<Attribute type="27" value="3600" dataType="Integer" name="Session-Timeout" />Cisco Router Administration
Grant full administrative access on Cisco devices:
<VendorAttribute vendorId="9" vendorType="1"
value="shell:priv-lvl=15"
dataType="String" name="Cisco-AV-Pair" />Multiple Attributes
You can define multiple attributes, including multiple VSAs from the same vendor:
<CustomAttributes>
<Attribute type="11" value="VPN-Users" dataType="String" name="Filter-Id" />
<Attribute type="27" value="3600" dataType="Integer" name="Session-Timeout" />
<VendorAttribute vendorId="9" vendorType="1" value="shell:priv-lvl=15" dataType="String" />
<VendorAttribute vendorId="9" vendorType="1" value="ip:inacl#1=permit ip any any" dataType="String" />
</CustomAttributes>Troubleshooting
Enable Tracing
Enable RADIUS tracing in the Configuration Manager to see detailed logs:
- Go to RADIUS Settings tab
- Check Enable Trace
- Save and restart the service
Trace output will show:
- Custom attributes being loaded from configuration
- Attributes being added to Access-Accept responses
- Any errors in attribute processing
Common Issues
Attribute Not Appearing in Response:
- Verify the attribute type is valid (1-255)
- Check that the attribute is not an internal-only type
- Ensure the service was restarted after configuration changes
Invalid Data Type:
- Integer values must be valid 32-bit unsigned integers
- IPv4 values must be valid IP addresses
- Octets must be valid hexadecimal strings
VSA Not Recognized by Client:
- Verify the Vendor ID matches your equipment's vendor
- Check the Vendor Type is correct for the specific attribute
- Consult your equipment's documentation for correct VSA formats
Log Messages
When tracing is enabled, you'll see messages like:
Reading Custom Attribute: type=11 name=Filter-Id value=VPN-Users dataType=String
Reading Vendor Attribute: vendorId=9 vendorType=1 name=Cisco-AV-Pair value=shell:priv-lvl=15 dataType=String
Loaded 3 custom RADIUS attribute(s)
Adding Custom Attribute: type=11 name=Filter-Id
Adding Vendor Attribute: vendorId=9 vendorType=1 name=Cisco-AV-Pair
Technical Reference
RFC Compliance
Custom attributes are implemented according to:
- RFC 2865 - Remote Authentication Dial In User Service (RADIUS)
- RFC 2866 - RADIUS Accounting
- RFC 2868 - RADIUS Tunnel Attributes
VSA Format (RFC 2865)
Vendor-Specific Attributes use Type 26 with the following structure:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type (26) | Length | Vendor-Id
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Vendor-Id (cont) | Vendor-Type | Vendor-Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Attribute-Specific...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Support
For additional assistance, contact SurePassID Support or refer to the product documentation at https://www.surepassid.com.
© 2013–2026 SurePassID. All rights reserved. Protected by patents pending. SurePassID, the SurePassID logo and design, and Secure SSO are registered trademarks or trademarks of SurePassID, Corp. in the United States and/or other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies.
SurePassID 360 Central Avenue #800 St. Petersburg, FL 33701 USA +1 (888) 200-8144 surepassid.com