Debian Codegraph @

doc/antora/modules/concepts/pages/protocol/authproto.adoc

raw
1 = Protocols
2
3 == RADIUS Protocol
4
5 RADIUS is a protocol for remote user Authorisation, Authentication, and Accounting. It's very important for Internet Service Providers, and any network that needs a centralized authentication and/or accounting services for its infrastructure.
6
7 RADIUS is often used in larger Wi-Fi (wireless) networks for authentication purposes, replacing the simple shared key methods which are uncomfortable if a Wi-Fi network reaches a specific size.
8
9 The protocol originally was designed by the well known terminal server manufacturer Livingston for use with their Portmaster series of terminal servers. Since then it has been implemented by hundreds other vendors and has a become an Internet Standard RFC. The DIAMETER protocol is the designated successor, but RADIUS is still commonly used today.
10
11 === RADIUS Protocol Dependencies
12
13 RADIUS uses UDP as its underlying protocol. The registered UDP port for RADIUS traffic is 1812 for authentication and configuration. The early deployment of RADIUS used UDP port 1645, which conflicted with the "datametrics" service. When RADIUS is used for accounting the registered UDP port is 1813. The earlier RADIUS version used port 1646, which conflicted with the "sa-msg-port" service.
14
15 == Authentication Protocols
16
17 In order for RADIUS authentication to work, user passwords need to be stored in a format that is understood by the authentication protocol used by the client. Many protocols integrated with RADIUS include:
18
19 * PAP
20 * CHAP
21 * MS-CHAP
22 * EAP
23
24 Authentication protocols used in RADIUS are not always compatible with the way the passwords have been stored. The following table shows which protocol is compatible with what kind of password.
25
26 === Authentication Protocol and Password Compatibility
27
28 Passwords may be stored in a datastore in many forms. Clear-text, MD5 hashed, crypt'd, NT hash, or other methods are all commonly used. Authentication protocols used in RADIUS are not always compatible with the way the passwords have been stored. The following table shows which protocol is compatible with what kind of password.
29
30 [#Proto-Password-Compat]
31 .Protocol Password Compatibility
32 [cols="2,1,1,1,1,1,1,1"]
33 |===
34 |*Protocol*|*Clear-text*|*NT hash*|*MD5 hash*|*Salted MD5 hash*|*SHA1 hash*|*Salted SHA1 hash*|*Unix Crypt*
35 |*PAP*
36 | ✔️
37 | ✔️
38 | ✔️
39 | ✔️
40 | ✔️
41 | ✔️
42 | ✔️
43
44 |*CHAP*
45 | ✔️
46 | ❌
47 | ❌
48 | ❌
49 | ❌
50 | ❌
51 | ❌
52
53 |*Digest*
54 | ✔️
55 | ❌
56 | ❌
57 | ❌
58 | ❌
59 | ❌
60 | ❌
61
62 |*MSCHAP*
63 | ✔️
64 | ✔️
65 | ❌
66 | ❌
67 | ❌
68 | ❌
69 | ❌
70
71 |*PEAP*
72 | ✔️
73 | ✔️
74 | ❌
75 | ❌
76 | ❌
77 | ❌
78 | ❌
79
80 |*EA-MSCHAP2*
81 | ✔️
82 | ✔️
83 | ❌
84 | ❌
85 | ❌
86 | ❌
87 | ❌
88
89 |*Cisco-LEAP*
90 | ✔️
91 | ✔️
92 | ❌
93 | ❌
94 | ❌
95 | ❌
96 | ❌
97
98 |*EAP-GTC*
99 | ✔️
100 | ✔️
101 | ✔️
102 | ✔️
103 | ✔️
104 | ✔️
105 | ✔️
106
107 |*EAP-MD5*
108 | ✔️
109 | ❌
110 | ❌
111 | ❌
112 | ❌
113 | ❌
114 | ❌
115
116 |*EAP-PWD*
117 | ✔️
118 | ❌
119 | ❌
120 | ❌
121 | ❌
122 | ✔️
123 | ✔️
124
125 |===
126
127 Many people store passwords in their databases in hashed or encrypted form. They later decide that they need to support an authentication protocol that the above table shows is incompatible with their password storage method. They then ask "How can I make authentication protocol X work with passwords stored as Y?" The short answer is "you can't".
128
129 The password hashes, and authentication protocols were designed to be incompatible. If the cell in the above table is red, then it's impossible to make the authentication protocol use that form of the password. Your only choices are to stop trying to use that authentication protocol, or to store the passwords in a form compatible with that authentication protocol. The last choice often means asking all users to change their passwords, unfortunately.
130
131 == More Information
132
133 Refer to https://github.com/FreeRADIUS/freeradius-server/tree/v3.2.x/share[Attributes] for more protocol attribute details and https://www.iana.org/assignments/radius-types/radius-types.xhtml[RADIUS Packet Types].
134
135 The relevant RFCs are:
136
137 * https://datatracker.ietf.org/doc/html/rfc2867[RFC 2867] RADIUS Accounting Modifications for Tunnel Protocol Support
138
139 * https://datatracker.ietf.org/doc/html/rfc2868[RFC 2868] RADIUS Attributes for Tunnel Protocol Support
140
141 * https://datatracker.ietf.org/doc/html/rfc2869[RFC 2869] RADIUS Extensions
142
143 * https://datatracker.ietf.org/doc/html/rfc3758[RFC 3748] Extensible Authentication Protocol (EAP)
144
145 * https://datatracker.ietf.org/doc/html/rfc3579[RFC 3579] RADIUS (Remote Authentication Dial In User Service) Support For Extensible Authentication Protocol (EAP)
146
147
148 // Copyright (C) 2025 Network RADIUS SAS. Licenced under CC-by-NC 4.0.
149 // This documentation was developed by Network RADIUS SAS.