Module radius::core::rfc2865 [−][src]
Utility for rfc2865 packet.
This module handles the packet according to the following definition:
//! # -*- text -*-
# Copyright (C) 2020 The FreeRADIUS Server project and contributors
# This work is licensed under CC-BY version 4.0 https://creativecommons.org/licenses/by/4.0
# Version $Id$
#
# Attributes and values defined in RFC 2865.
# http://www.ietf.org/rfc/rfc2865.txt
#
# $Id$
#
ATTRIBUTE User-Name 1 string
ATTRIBUTE User-Password 2 string encrypt=1
ATTRIBUTE CHAP-Password 3 octets
ATTRIBUTE NAS-IP-Address 4 ipaddr
ATTRIBUTE NAS-Port 5 integer
ATTRIBUTE Service-Type 6 integer
ATTRIBUTE Framed-Protocol 7 integer
ATTRIBUTE Framed-IP-Address 8 ipaddr
ATTRIBUTE Framed-IP-Netmask 9 ipaddr
ATTRIBUTE Framed-Routing 10 integer
ATTRIBUTE Filter-Id 11 string
ATTRIBUTE Framed-MTU 12 integer
ATTRIBUTE Framed-Compression 13 integer
ATTRIBUTE Login-IP-Host 14 ipaddr
ATTRIBUTE Login-Service 15 integer
ATTRIBUTE Login-TCP-Port 16 integer
# Attribute 17 is undefined
ATTRIBUTE Reply-Message 18 string
ATTRIBUTE Callback-Number 19 string
ATTRIBUTE Callback-Id 20 string
# Attribute 21 is undefined
ATTRIBUTE Framed-Route 22 string
ATTRIBUTE Framed-IPX-Network 23 ipaddr
ATTRIBUTE State 24 octets
ATTRIBUTE Class 25 octets
ATTRIBUTE Vendor-Specific 26 vsa
ATTRIBUTE Session-Timeout 27 integer
ATTRIBUTE Idle-Timeout 28 integer
ATTRIBUTE Termination-Action 29 integer
ATTRIBUTE Called-Station-Id 30 string
ATTRIBUTE Calling-Station-Id 31 string
ATTRIBUTE NAS-Identifier 32 string
ATTRIBUTE Proxy-State 33 octets
ATTRIBUTE Login-LAT-Service 34 string
ATTRIBUTE Login-LAT-Node 35 string
ATTRIBUTE Login-LAT-Group 36 octets
ATTRIBUTE Framed-AppleTalk-Link 37 integer
ATTRIBUTE Framed-AppleTalk-Network 38 integer
ATTRIBUTE Framed-AppleTalk-Zone 39 string
ATTRIBUTE CHAP-Challenge 60 octets
ATTRIBUTE NAS-Port-Type 61 integer
ATTRIBUTE Port-Limit 62 integer
ATTRIBUTE Login-LAT-Port 63 string
#
# Integer Translations
#
# Service types
VALUE Service-Type Login-User 1
VALUE Service-Type Framed-User 2
VALUE Service-Type Callback-Login-User 3
VALUE Service-Type Callback-Framed-User 4
VALUE Service-Type Outbound-User 5
VALUE Service-Type Administrative-User 6
VALUE Service-Type NAS-Prompt-User 7
VALUE Service-Type Authenticate-Only 8
VALUE Service-Type Callback-NAS-Prompt 9
VALUE Service-Type Call-Check 10
VALUE Service-Type Callback-Administrative 11
# Framed Protocols
VALUE Framed-Protocol PPP 1
VALUE Framed-Protocol SLIP 2
VALUE Framed-Protocol ARAP 3
VALUE Framed-Protocol Gandalf-SLML 4
VALUE Framed-Protocol Xylogics-IPX-SLIP 5
VALUE Framed-Protocol X.75-Synchronous 6
# Framed Routing Values
VALUE Framed-Routing None 0
VALUE Framed-Routing Broadcast 1
VALUE Framed-Routing Listen 2
VALUE Framed-Routing Broadcast-Listen 3
# Framed Compression Types
VALUE Framed-Compression None 0
VALUE Framed-Compression Van-Jacobson-TCP-IP 1
VALUE Framed-Compression IPX-Header-Compression 2
VALUE Framed-Compression Stac-LZS 3
# Login Services
VALUE Login-Service Telnet 0
VALUE Login-Service Rlogin 1
VALUE Login-Service TCP-Clear 2
VALUE Login-Service PortMaster 3
VALUE Login-Service LAT 4
VALUE Login-Service X25-PAD 5
VALUE Login-Service X25-T3POS 6
VALUE Login-Service TCP-Clear-Quiet 8
# Login-TCP-Port (see /etc/services for more examples)
VALUE Login-TCP-Port Telnet 23
VALUE Login-TCP-Port Rlogin 513
VALUE Login-TCP-Port Rsh 514
# Termination Options
VALUE Termination-Action Default 0
VALUE Termination-Action RADIUS-Request 1
# NAS Port Types
VALUE NAS-Port-Type Async 0
VALUE NAS-Port-Type Sync 1
VALUE NAS-Port-Type ISDN 2
VALUE NAS-Port-Type ISDN-V120 3
VALUE NAS-Port-Type ISDN-V110 4
VALUE NAS-Port-Type Virtual 5
VALUE NAS-Port-Type PIAFS 6
VALUE NAS-Port-Type HDLC-Clear-Channel 7
VALUE NAS-Port-Type X.25 8
VALUE NAS-Port-Type X.75 9
VALUE NAS-Port-Type G.3-Fax 10
VALUE NAS-Port-Type SDSL 11
VALUE NAS-Port-Type ADSL-CAP 12
VALUE NAS-Port-Type ADSL-DMT 13
VALUE NAS-Port-Type IDSL 14
VALUE NAS-Port-Type Ethernet 15
VALUE NAS-Port-Type xDSL 16
VALUE NAS-Port-Type Cable 17
VALUE NAS-Port-Type Wireless-Other 18
VALUE NAS-Port-Type Wireless-802.11 19
Constants
Functions
add_callback_id | Add |
add_callback_number | Add |
add_called_station_id | Add |
add_calling_station_id | Add |
add_chap_challenge | Add |
add_chap_password | Add |
add_class | Add |
add_filter_id | Add |
add_framed_apple_talk_link | Add |
add_framed_apple_talk_network | Add |
add_framed_apple_talk_zone | Add |
add_framed_compression | Add |
add_framed_ip_address | Add |
add_framed_ip_netmask | Add |
add_framed_ipx_network | Add |
add_framed_mtu | Add |
add_framed_protocol | Add |
add_framed_route | Add |
add_framed_routing | Add |
add_idle_timeout | Add |
add_login_ip_host | Add |
add_login_lat_group | Add |
add_login_lat_node | Add |
add_login_lat_port | Add |
add_login_lat_service | Add |
add_login_service | Add |
add_login_tcp_port | Add |
add_nas_identifier | Add |
add_nas_ip_address | Add |
add_nas_port | Add |
add_nas_port_type | Add |
add_port_limit | Add |
add_proxy_state | Add |
add_reply_message | Add |
add_service_type | Add |
add_session_timeout | Add |
add_state | Add |
add_termination_action | Add |
add_user_name | Add |
add_user_password | Add |
delete_callback_id | Delete all of |
delete_callback_number | Delete all of |
delete_called_station_id | Delete all of |
delete_calling_station_id | Delete all of |
delete_chap_challenge | Delete all of |
delete_chap_password | Delete all of |
delete_class | Delete all of |
delete_filter_id | Delete all of |
delete_framed_apple_talk_link | Delete all of |
delete_framed_apple_talk_network | Delete all of |
delete_framed_apple_talk_zone | Delete all of |
delete_framed_compression | Delete all of |
delete_framed_ip_address | Delete all of |
delete_framed_ip_netmask | Delete all of |
delete_framed_ipx_network | Delete all of |
delete_framed_mtu | Delete all of |
delete_framed_protocol | Delete all of |
delete_framed_route | Delete all of |
delete_framed_routing | Delete all of |
delete_idle_timeout | Delete all of |
delete_login_ip_host | Delete all of |
delete_login_lat_group | Delete all of |
delete_login_lat_node | Delete all of |
delete_login_lat_port | Delete all of |
delete_login_lat_service | Delete all of |
delete_login_service | Delete all of |
delete_login_tcp_port | Delete all of |
delete_nas_identifier | Delete all of |
delete_nas_ip_address | Delete all of |
delete_nas_port | Delete all of |
delete_nas_port_type | Delete all of |
delete_port_limit | Delete all of |
delete_proxy_state | Delete all of |
delete_reply_message | Delete all of |
delete_service_type | Delete all of |
delete_session_timeout | Delete all of |
delete_state | Delete all of |
delete_termination_action | Delete all of |
delete_user_name | Delete all of |
delete_user_password | Delete all of |
delete_vendor_specific | Delete all of |
lookup_all_callback_id | Lookup all of the |
lookup_all_callback_number | Lookup all of the |
lookup_all_called_station_id | Lookup all of the |
lookup_all_calling_station_id | Lookup all of the |
lookup_all_chap_challenge | Lookup all of the |
lookup_all_chap_password | Lookup all of the |
lookup_all_class | Lookup all of the |
lookup_all_filter_id | Lookup all of the |
lookup_all_framed_apple_talk_link | Lookup all of the |
lookup_all_framed_apple_talk_network | Lookup all of the |
lookup_all_framed_apple_talk_zone | Lookup all of the |
lookup_all_framed_compression | Lookup all of the |
lookup_all_framed_ip_address | Lookup all of the |
lookup_all_framed_ip_netmask | Lookup all of the |
lookup_all_framed_ipx_network | Lookup all of the |
lookup_all_framed_mtu | Lookup all of the |
lookup_all_framed_protocol | Lookup all of the |
lookup_all_framed_route | Lookup all of the |
lookup_all_framed_routing | Lookup all of the |
lookup_all_idle_timeout | Lookup all of the |
lookup_all_login_ip_host | Lookup all of the |
lookup_all_login_lat_group | Lookup all of the |
lookup_all_login_lat_node | Lookup all of the |
lookup_all_login_lat_port | Lookup all of the |
lookup_all_login_lat_service | Lookup all of the |
lookup_all_login_service | Lookup all of the |
lookup_all_login_tcp_port | Lookup all of the |
lookup_all_nas_identifier | Lookup all of the |
lookup_all_nas_ip_address | Lookup all of the |
lookup_all_nas_port | Lookup all of the |
lookup_all_nas_port_type | Lookup all of the |
lookup_all_port_limit | Lookup all of the |
lookup_all_proxy_state | Lookup all of the |
lookup_all_reply_message | Lookup all of the |
lookup_all_service_type | Lookup all of the |
lookup_all_session_timeout | Lookup all of the |
lookup_all_state | Lookup all of the |
lookup_all_termination_action | Lookup all of the |
lookup_all_user_name | Lookup all of the |
lookup_all_user_password | Lookup all of the |
lookup_callback_id | Lookup a |
lookup_callback_number | Lookup a |
lookup_called_station_id | Lookup a |
lookup_calling_station_id | Lookup a |
lookup_chap_challenge | Lookup a |
lookup_chap_password | Lookup a |
lookup_class | Lookup a |
lookup_filter_id | Lookup a |
lookup_framed_apple_talk_link | Lookup a |
lookup_framed_apple_talk_network | Lookup a |
lookup_framed_apple_talk_zone | Lookup a |
lookup_framed_compression | Lookup a |
lookup_framed_ip_address | Lookup a |
lookup_framed_ip_netmask | Lookup a |
lookup_framed_ipx_network | Lookup a |
lookup_framed_mtu | Lookup a |
lookup_framed_protocol | Lookup a |
lookup_framed_route | Lookup a |
lookup_framed_routing | Lookup a |
lookup_idle_timeout | Lookup a |
lookup_login_ip_host | Lookup a |
lookup_login_lat_group | Lookup a |
lookup_login_lat_node | Lookup a |
lookup_login_lat_port | Lookup a |
lookup_login_lat_service | Lookup a |
lookup_login_service | Lookup a |
lookup_login_tcp_port | Lookup a |
lookup_nas_identifier | Lookup a |
lookup_nas_ip_address | Lookup a |
lookup_nas_port | Lookup a |
lookup_nas_port_type | Lookup a |
lookup_port_limit | Lookup a |
lookup_proxy_state | Lookup a |
lookup_reply_message | Lookup a |
lookup_service_type | Lookup a |
lookup_session_timeout | Lookup a |
lookup_state | Lookup a |
lookup_termination_action | Lookup a |
lookup_user_name | Lookup a |
lookup_user_password | Lookup a |
Type Definitions
FramedCompression | |
FramedProtocol | |
FramedRouting | |
LoginService | |
LoginTCPPort | |
NasPortType | |
ServiceType | |
TerminationAction |