Debian Codegraph @

doc/contrib/mod_radius.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>ProFTPD module mod_radius</title>
5 </head>
6
7 <body bgcolor=white>
8
9 <hr>
10 <center>
11 <h2><b>ProFTPD module <code>mod_radius</code></b></h2>
12 </center>
13 <hr><br>
14
15 This module is contained in the <code>mod_radius.c</code> file for
16 ProFTPD 1.3.<i>x</i>, and is not compiled by default. Installation
17 instructions are discussed <a href="#Installation">here</a>.
18
19 <p>
20 This module is used to authenticate users using the <code>RADIUS</code>
21 protocol. It can also be used to do logging via <code>RADIUS</code> accounting
22 packets. A more in-depth discussion of the <a href="#Usage">usage</a> of this
23 module follows the configuration directive documentation.
24
25 <p>
26 The most current version of <code>mod_radius</code> is distributed with the
27 ProFTPD source code.
28
29 <h2>Author</h2>
30 <p>
31 Please contact TJ Saunders &lt;tj <i>at</i> castaglia.org&gt; with any
32 questions, concerns, or suggestions regarding this module.
33
34 <h2>Thanks</h2>
35 <p>
36 <i>2002-06-26</i>: Thanks to Josh Wilsdon &lt;josh <i>at</i> wizard.ca&gt;
37 for correcting a bad assumption in the code that caused data corruption under
38 some circumstances.
39
40 <p>
41 <i>2002-12-18</i>: Many thanks to Steffen Clausjuergens &lt;stcl <i>at</i> clausjuergens.de&gt; for helping to track down several bugs with accounting packets.
42
43 <p>
44 <i>2003-03-20</i>: Many thanks to Boris Kovalenko &lt;boris <i>at</i> tagnet.ru &gt; for testing many versions of the VSA code.
45
46 <h2>Directives</h2>
47 <ul>
48 <li><a href="#RadiusAcctServer">RadiusAcctServer</a>
49 <li><a href="#RadiusAuthServer">RadiusAuthServer</a>
50 <li><a href="#RadiusEngine">RadiusEngine</a>
51 <li><a href="#RadiusGroupInfo">RadiusGroupInfo</a>
52 <li><a href="#RadiusLog">RadiusLog</a>
53 <li><a href="#RadiusNASIdentifier">RadiusNASIdentifier</a>
54 <li><a href="#RadiusOptions">RadiusOptions</a>
55 <li><a href="#RadiusQuotaInfo">RadiusQuotaInfo</a>
56 <li><a href="#RadiusRealm">RadiusRealm</a>
57 <li><a href="#RadiusUserInfo">RadiusUserInfo</a>
58 <li><a href="#RadiusVendor">RadiusVendor</a>
59 </ul>
60
61 <hr>
62 <h3><a name="RadiusAcctServer">RadiusAcctServer</a></h3>
63 <strong>Syntax:</strong> RadiusAcctServer <em>server[:port] shared-secret [timeout]</em><br>
64 <strong>Default:</strong> None<br>
65 <strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code><br>
66 <strong>Module:</strong> mod_radius<br>
67 <strong>Compatibility:</strong> 1.2.5rc2 and later
68
69 <p>
70 The <code>RadiusAcctServer</code> is used to specify a RADIUS server to be
71 used for accounting. The <em>server</em> parameter may be either an
72 IP address or a DNS hostname. If not specified, the port used will be
73 the IANA-registered 1813. The optional <em>timeout</em> parameter is used
74 to tell <code>mod_radius</code> how long to wait for a response from the
75 server; it defaults to 30 seconds.
76
77 <p>
78 Multiple <code>RadiusAcctServer</code>s may be configured; each will be
79 tried, in order of appearance in the configuration file, until
80 that server times out or <code>mod_radius</code> receives a response.
81
82 <p>
83 If no <code>RadiusAcctServer</code>s are configured, <code>mod_radius</code>
84 will not use RADIUS for accounting.
85
86 <p>
87 See also: <a href="#RadiusAuthServer">RadiusAuthServer</a>
88
89 <p>
90 <hr>
91 <h3><a name="RadiusAuthServer">RadiusAuthServer</a></h3>
92 <strong>Syntax:</strong> RadiusAuthServer <em>server[:port] shared-secret [timeout]</em><br>
93 <strong>Default:</strong> None<br>
94 <strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code><br>
95 <strong>Module:</strong> mod_radius<br>
96 <strong>Compatibility:</strong> 1.2.5rc2 and later
97
98 <p>
99 The <code>RadiusAuthServer</code> is used to specify a RADIUS server to be
100 used for authentication. The <em>server</em> parameter may be either an
101 IP address or a DNS hostname. If not specified, the port used will be
102 the IANA-registered 1812. The optional <em>timeout</em> parameter is used
103 to tell <code>mod_radius</code> how long to wait for a response from the
104 server; it defaults to 30 seconds.
105
106 <p>
107 Multiple <code>RadiusAuthServer</code>s may be configured; each will be
108 tried, in order of appearance in the configuration file, until
109 that server times out or <code>mod_radius</code> receives a response.
110
111 <p>
112 If no <code>RadiusAuthServer</code>s are configured, <code>mod_radius</code>
113 will not use RADIUS for authentication.
114
115 <p>
116 See also: <a href="#RadiusAcctServer">RadiusAcctServer</a>
117
118 <p>
119 <hr>
120 <h3><a name="RadiusEngine">RadiusEngine</a></h3>
121 <strong>Syntax:</strong> RadiusEngine <em>on|off</em><br>
122 <strong>Default:</strong> None<br>
123 <strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code><br>
124 <strong>Module:</strong> mod_radius<br>
125 <strong>Compatibility:</strong> 1.2.5rc2 and later
126
127 <p>
128 The <code>RadiusEngine</code> directive enables or disables the module's
129 runtime RADIUS engine. If it is set to <em>off</em> this module does no
130 RADIUS authentication or accounting at all. Use this directive to disable the
131 module instead of commenting out all <code>mod_radius</code> directives.
132
133 <p>
134 <hr>
135 <h3><a name="RadiusGroupInfo">RadiusGroupInfo</a></h3>
136 <strong>Syntax:</strong> RadiusGroupInfo <em>primary-group-name suppl-group-names suppl-group-ids</em><br>
137 <strong>Default:</strong> None<br>
138 <strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code><br>
139 <strong>Module:</strong> mod_radius<br>
140 <strong>Compatibility:</strong> 1.2.9rc1 and later
141
142 <p>
143 The <code>RadiusGroupInfo</code> directive is used to configure group membership
144 information used for every user authenticated via RADIUS. The
145 <em>primary-group-name</em> parameter is used to configure the name that
146 matches the user's GID (which can be configured via the
147 <code>RadiusUserInfo</code> directive). The <em>suppl-group-names</em> and
148 <em>suppl-group-ids</em> parameters are used to specify supplemental group
149 membership for each user; the number of names and IDs must match if these
150 parameters, each a comma-delimited list, are used. As many of ProFTPD's
151 directives can operate based on group names, these textual group names may
152 be important.
153
154 <p>
155 In order to support RADIUS servers that may use custom attributes in their
156 <code>Access-Accept</code> response packets to supply user information back
157 to the RADIUS client (<code>mod_radius</code> in this case), this directive
158 allows the following syntax for some of its parameters:
159 <pre>
160 $(<i>attribute-id</i>:<i>default-value</i>)
161 </pre>
162 where the enclosing <code>$()</code> signals that the parameter is to
163 be supplied by the RADIUS server, <code><i>attribute-id</i></code> is the
164 Vendor Specific Attribute (VSA) ID for which to search in the response packet,
165 and <code><i>default-value</i></code> is the value to use in case the requested
166 attribute is not present in the response packet. See the
167 <code>RadiusVendor</code> directive description for more information about
168 VSAs.
169
170 <p>
171 See Also:
172 <a href="#RadiusUserInfo"><code>RadiusUserInfo</code></a>,
173 <a href="#RadiusVendor"><code>RadiusVendor</code></a>
174
175 <p>
176 <hr>
177 <h3><a name="RadiusLog">RadiusLog</a></h3>
178 <strong>Syntax:</strong> RadiusLog <em>file|&quot;none&quot;</em><br>
179 <strong>Default:</strong> None<br>
180 <strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code><br>
181 <strong>Module:</strong> mod_radius<br>
182 <strong>Compatibility:</strong> 1.2.5rc2 and later
183
184 <p>
185 The <code>RadiusLog</code> directive is used to specify a log file for
186 <code>mod_radius</code> reporting and debugging, and can be done a per-server
187 basis. The <em>file</em> parameter must be the full path to the file to use for
188 logging. Note that this path must <b>not</b> be to a world-writeable
189 directory and, unless <code>AllowLogSymlinks</code> is explicitly set to
190 <em>on</em> (generally a bad idea), the path must <b>not</b> be a symbolic
191 link.
192
193 <p>
194 If <em>file</em> is &quot;none&quot;, no logging will be done at all; this
195 setting can be used to override a <code>RadiusLog</code> setting inherited from
196 a <code>&lt;Global&gt;</code> context.
197
198 <p>
199 <hr>
200 <h3><a name="RadiusNASIdentifier">RadiusNASIdentifier</a></h3>
201 <strong>Syntax:</strong> RadiusNASIdentifier <em>id</em><br>
202 <strong>Default:</strong> RadiusNASIdentifier ftp<br>
203 <strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code><br>
204 <strong>Module:</strong> mod_radius<br>
205 <strong>Compatibility:</strong> 1.3.1rc2 and later
206
207 <p>
208 The <code>RadiusNASIdentifier</code> directive configures an NAS
209 <em>identifier</em> string that will be in the constructed RADIUS packets.
210 By default, the NAS identifier is &quot;ftp&quot; for FTP sessions, and
211 &quot;ssh2&quot; for SFTP/SCP sessions (via the <code>mod_sftp</code> module).
212
213 <p>
214 Example:
215 <pre>
216 RadiusNASIdentifier customID
217 </pre>
218
219 <p>
220 <hr>
221 <h3><a name="RadiusOptions">RadiusOptions</a></h3>
222 <strong>Syntax:</strong> RadiusOptions <em>opt1 ...</em><br>
223 <strong>Default:</strong> None<br>
224 <strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code><br>
225 <strong>Module:</strong> mod_radius<br>
226 <strong>Compatibility:</strong> 1.3.6rc1 and later
227
228 <p>
229 The <code>RadiusOptions</code> directive is used to configure various optional
230 behavior of <code>mod_radius</code>.
231
232 <p>
233 For example:
234 <pre>
235 RadiusOptions RequireMAC IgnoreReplyMessage
236 </pre>
237
238 <p>
239 The currently implemented options are:
240 <ul>
241 <li><code>IgnoreClass</code><br>
242 <p>
243 Some RADIUS servers will send the <code>Class</code> attribute in their
244 <code>Access-Accept</code> response, containing a value that should be
245 sent in every accounting requesting. To tell <code>mod_radius</code> to
246 ignore/not send this <code>Class</code> attribute, use this option.
247
248 <p>
249 <b>Note</b> that this option first appeared in
250 <code>proftpd-1.3.6rc1</code>.
251 </li>
252
253 <p>
254 <li><code>IgnoreReplyMessage</code><br>
255 <p>
256 Some RADIUS servers will send the <code>Reply-Message</code> attribute in
257 their <code>Access-Accept</code> and <code>Access-Reject</code> responses,
258 containing messages that should be displayed to the connecting user.
259 To tell <code>mod_radius</code> to ignore/not display these
260 <code>Reply-Message</code> attributes, use this option.
261
262 <p>
263 <b>Note</b> that this option first appeared in
264 <code>proftpd-1.3.6rc1</code>.
265 </li>
266
267 <p>
268 <li><code>IgnoreIdleTimeout</code><br>
269 <p>
270 Some RADIUS servers will send the <code>Idle-Timeout</code> attribute in
271 their <code>Access-Accept</code> response, containing a timeout value to
272 be used for idle sessions. To tell <code>mod_radius</code> to ignore/not
273 use this <code>Idle-Timeout</code> value, use this option.
274
275 <p>
276 <b>Note</b> that this option first appeared in
277 <code>proftpd-1.3.6rc1</code>.
278 </li>
279
280 <p>
281 <li><code>IgnoreSessionTimeout</code><br>
282 <p>
283 Some RADIUS servers will send the <code>Session-Timeout</code> attribute in
284 their <code>Access-Accept</code> response, containing a timeout value to
285 be used for maximum session durations. To tell <code>mod_radius</code> to
286 ignore/not use this <code>Session-Timeout</code> value, use this option.
287
288 <p>
289 <b>Note</b> that this option first appeared in
290 <code>proftpd-1.3.6rc1</code>.
291 </li>
292
293 <p>
294 <li><code>RequireMAC</code><br>
295 <p>
296 Some RADIUS servers will send the <code>Message-Authenticator</code>
297 attribute in their <code>Access-Accept</code> and <code>Access-Reject</code>
298 responses, used for protecting against spoof attacks. Some RADIUS servers,
299 though, do not use this attribute. To be very secure, and to tell
300 <code>mod_radius</code> to <b>require</b> the use of this attribute, use
301 this option.
302
303 <p>
304 <b>Note</b> that this option first appeared in
305 <code>proftpd-1.3.6rc1</code>.
306 </li>
307 </ul>
308
309 <p>
310 <hr>
311 <h3><a name="RadiusQuotaInfo">RadiusQuotaInfo</a></h3>
312 <strong>Syntax:</strong> RadiusQuotaInfo <em>per-sess limit-type bytes-in bytes-out bytes-xfer files-in files-out files-xfer</em><br>
313 <strong>Default:</strong> None<br>
314 <strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code><br>
315 <strong>Module:</strong> mod_radius<br>
316 <strong>Compatibility:</strong> 1.3.0rc1 and later
317
318 <p>
319 The <code>RadiusQuotaInfo</code> directive is used to configure quota
320 information used for every user. This information will be used,
321 in conjunction with the <code>mod_quotatab_radius</code> module, for
322 provisioning per-user quota information via RADIUS.
323
324 <p>
325 In order to support RADIUS servers that may use custom attributes in their
326 <code>Access-Accept</code> response packets to supply user information back
327 to the RADIUS client (<code>mod_radius</code> in this case), this directive
328 allows the following syntax for some of its parameters:
329 <pre>
330 $(<i>attribute-id</i>:<i>default-value</i>)
331 </pre>
332 where the enclosing <code>$()</code> signals that the parameter is to
333 be supplied by the RADIUS server, <code><i>attribute-id</i></code> is the
334 Vendor Specific Attribute (VSA) ID for which to search in the response packet,
335 and <code><i>default-value</i></code> is the value to use in case the requested
336 attribute is not present in the response packet. See the
337 <code>RadiusVendor</code> directive description for more information about
338 VSAs.
339
340 <p>
341 The <code>RadiusQuotaInfo</code> directive can be used to configure unchanging
342 numbers, rather than custom attributes, if need be.
343
344 <p>
345 An example configuration might look like:
346 <pre>
347 &lt;IfModule mod_quotatab_radius.c&gt;
348 QuotaLimitTable radius:
349 QuotaTallyTable file:/home/tj/proftpd/devel/build/cvs/etc/ftpquota.tallytab
350
351 # mod_radius attributes
352 RadiusEngine on
353 RadiusAuthServer localhost:1812 testing123 5
354 RadiusLog /var/ftpd/log/radius.log
355
356 # This sets unchanging quota limit values, rather than using custom attributes
357 # from a RADIUS server
358 RadiusQuotaInfo false soft 3.0 2.0 1.0 7 8 9
359
360 &lt;/IfModule&gt;
361 </pre>
362
363 <p>
364 See Also: <a href="#RadiusVendor"><code>RadiusVendor</code></a>
365
366 <p>
367 <hr>
368 <h3><a name="RadiusRealm">RadiusRealm</a></h3>
369 <strong>Syntax:</strong> RadiusRealm <em>realm</em><br>
370 <strong>Default:</strong> None<br>
371 <strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code><br>
372 <strong>Module:</strong> mod_radius<br>
373 <strong>Compatibility:</strong> 1.2.5rc2 and later
374
375 <p>
376 The <code>RadiusRealm</code> directive configures a <em>realm</em> string
377 that will be added to the username in the constructed RADIUS packets.
378
379 <p>
380 Example:
381 <pre>
382 RadiusRealm .castaglia.org
383 </pre>
384
385 <p>
386 <hr>
387 <h3><a name="RadiusUserInfo">RadiusUserInfo</a></h3>
388 <strong>Syntax:</strong> RadiusUserInfo <em>uid gid home shell</em><br>
389 <strong>Default:</strong> None<br>
390 <strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code><br>
391 <strong>Module:</strong> mod_radius<br>
392 <strong>Compatibility:</strong> 1.2.5rc2 and later
393
394 <p>
395 The <code>RadiusUserInfo</code> directive is used to configure login
396 information used for every user authenticated via RADIUS. Group membership
397 information can be configured by using the <code>RadiusGroupInfo</code>
398 directive.
399
400 <p>
401 In order to support RADIUS servers that may use custom attributes in their
402 <code>Access-Accept</code> response packets to supply user information back
403 to the RADIUS client (<code>mod_radius</code> in this case), this directive
404 allows the following syntax for some of its parameters:
405 <pre>
406 $(<i>attribute-id</i>:<i>default-value</i>)
407 </pre>
408 where the enclosing <code>$()</code> signals that the parameter is to
409 be supplied by the RADIUS server, <code><i>attribute-id</i></code> is the
410 Vendor Specific Attribute (VSA) ID for which to search in the response packet,
411 and <code><i>default-value</i></code> is the value to use in case the requested
412 attribute is not present in the response packet. See the
413 <code>RadiusVendor</code> directive description for more information about
414 VSAs.
415
416 <p>
417 If <code>RadiusUserInfo</code> is not used, <code>mod_radius</code> will
418 perform pure &quot;yes/no&quot; authentication only, in the style of PAM.
419 The information that would have been configured via this directive will
420 be pulled from other sources (<i>e.g.</i> <code>/etc/passwd</code>,
421 <code>AuthUserFile</code>s, MySQL tables, etc).
422
423 <p>
424 See Also:
425 <a href="#RadiusGroupInfo"><code>RadiusGroupInfo</code></a>,
426 <a href="#RadiusVendor"><code>RadiusVendor</code></a>
427
428 <p>
429 <hr>
430 <h3><a name="RadiusVendor">RadiusVendor</a></h3>
431 <strong>Syntax:</strong> RadiusVendor <em>name id</em><br>
432 <strong>Default:</strong> RadiusVendor Unix 4<br>
433 <strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code><br>
434 <strong>Module:</strong> mod_radius<br>
435 <strong>Compatibility:</strong> 1.2.9rc1 and later
436
437 <p>
438 The <code>RadiusVendor</code> directive is used to configure the vendor name
439 and ID for which <code>mod_radius</code> will search when it looks for
440 vendor-specific attributes in RADIUS response packets.
441
442 <p>
443 Earlier versions of <code>mod_radius</code> could be configured to look up
444 custom RADIUS attributes by normal RADIUS attribute type IDs. However,
445 those normal IDs can only be from 0 to 255, putting a limit on the number
446 of such custom attributes. Fortunately, the RADIUS RFCs define a specific
447 attribute ID, 26, for vendor-specific attributes. The values for such
448 attributes contains an ID for the specific vendor, and then the vendor-specific
449 attribute. The vendor IDs come from the IANA's enterprise numbers hierarchy:
450 <pre>
451 <a href="http://www.iana.org/assignments/enterprise-numbers">http://www.iana.org/assignments/enterprise-numbers</a>
452 </pre>
453
454 <p>
455 By default, <code>mod_radius</code> will look for a vendor ID of 4 (Unix);
456 this configuration directive is used to tell <code>mod_radius</code> to
457 expect a different vendor.
458
459 <p>
460 <hr>
461 <h2><a name="Usage">Usage</a></h2>
462 Strong authentication is in demand for Internet services. For many, this
463 means using the <b>RADIUS</b> (<b>R</b>emote <b>A</b>uthentication
464 <b>D</b>ial-<b>I</b>n <b>U</b>ser <b>S</b>ervice) protocol.
465
466 <p>
467 However, there are caveats to using RADIUS for authentication. RADIUS
468 packets are sent in the clear, which means that they can easily be sniffed.
469 First, <b><i>do not</i></b> have your authenticating RADIUS servers exposed
470 to the Internet; keep them protected within your LAN. Second, it is
471 <i>highly recommended</i> to use separate RADIUS servers for each of your
472 services.
473
474 <p>
475 <b>RADIUS Authentication</b><br>
476 The RADIUS protocol can be used for answering the question &quot;Should this
477 user be allowed to login?&quot; However, the &quot;yes/no&quot; answer is not
478 everything that <code>proftpd</code> needs to log a user in; the server also
479 requires the UID and GID to use for the authenticated user, home directory,
480 and shell. This information is usually not available from the RADIUS servers,
481 which means that using RADIUS to provide all the necessary login information
482 can be problematic. The <code>RadiusUserInfo</code> directive is meant to be
483 used to address this issue, to provide the missing information.
484
485 <p>
486 In those cases where the RADIUS servers <i>can</i> provide that additional
487 login information, via custom attributes, the <code>RadiusUserInfo</code>
488 directive can also be used obtain that information as well.
489
490 <p>
491 <b>RADIUS Accounting</b><br>
492 While RADIUS is primarily used for authentication, the protocol also allows
493 for accounting of user activities. The <code>mod_radius</code> module
494 makes use of this ability, using RADIUS accounting packets to transmit the
495 following data:
496 <ul>
497 <li><b>Acct-Authentic</b>: How the user was authenticated (<i>e.g.</i>
498 locally, or via RADIUS)<br>
499 </li>
500 <br>
501
502 <li><b>Acct-Session-Id</b>: The process ID of the FTP session<br>
503 </li>
504 <br>
505
506 <li><b>Acct-Session-Time</b>: The duration of the FTP session, in seconds<br>
507 </li>
508 <br>
509
510 <li><b>Acct-Input-Octets</b>: The number of bytes uploaded (includes
511 appending to files)<br>
512 </li>
513 <br>
514
515 <li><b>Acct-Output-Octets</b>: The number of bytes downloaded<br>
516 </li>
517 <br>
518
519 <li><b>Acct-Terminate-Cause</b>: The reason the session ended<br>
520 </li>
521 <br>
522
523 <li><b>Event-Timestamp</b>: The number of seconds since the Unix epoch<br>
524 </li>
525 <br>
526 </ul>
527 Merely configuring a <code>RadiusAcctServer</code> enables the module's
528 accounting capabilities.
529
530 <p>
531 <b>Common Attributes</b><br>
532 The following RADIUS attributes are sent with every RADIUS packet generated
533 by <code>mod_radius</code>:
534 <ul>
535 <li><b>User-Name</b>: The name of the logging-in user<br>
536 </li>
537 <br>
538
539 <li><b>NAS-Identifier</b>: &quot;ftp&quot; (or &quot;ssh2&quot; for SFTP/SCP sessions)<br>
540 </li>
541 <br>
542
543 <li><b>NAS-IP-Address</b> <i>or</i> <b>NAS-IPv6-Address</b>: IP address of server<br>
544 </li>
545 <br>
546
547 <li><b>NAS-Port</b>: Port of server<br>
548 </li>
549 <br>
550
551 <li><b>NAS-Port-Type</b>: Always <code>Virtual</code>.<br>
552 </li>
553 <br>
554
555 <li><b>Calling-Station-Id</b>: IP address of connecting client<br>
556 </li>
557 <br>
558
559 <li><b>Message-Authenticator</b>: MAC of request, per RFC 3579<br>
560 </li>
561 <br>
562 </ul>
563
564 <p>
565 <hr>
566 <h2><a name="Installation">Installation</a></h2>
567 The <code>mod_radius</code> module is distributed with ProFTPD. Simply follow
568 the normal steps for using third-party modules in ProFTPD:
569 <pre>
570 $ ./configure --enable-openssl --with-modules=mod_radius
571 </pre>
572 To build <code>mod_radius</code> as a DSO module:
573 <pre>
574 $ ./configure --enable-dso --enable-openssl --with-shared=mod_radius
575 </pre>
576 Then follow the usual steps:
577 <pre>
578 $ make
579 $ make install
580 </pre>
581
582 <p>
583 Alternatively, if your <code>proftpd</code> was compiled with DSO support, you
584 can use the <code>prxs</code> tool to build <code>mod_radius</code> as a shared
585 module:
586 <pre>
587 $ prxs -c -i -d mod_radius.c
588 </pre>
589
590 <p>
591 <b>Logging</b><br>
592 The <code>mod_radius</code> module supports different forms of logging. The
593 main module logging is done via the <code>RadiusLog</code> directive. For
594 debugging purposes, the module also uses <a href="../howto/Tracing.html">trace logging</a>, via the module-specific log channels:
595 <ul>
596 <li>radius
597 </ul>
598 Thus for trace logging, to aid in debugging, you would use the following in
599 your <code>proftpd.conf</code>:
600 <pre>
601 TraceLog /path/to/radius-trace.log
602 Trace radius:20
603 </pre>
604 This trace logging can generate large files; it is intended for debugging
605 use only, and should be removed from any production configuration.
606
607 <p><a name="FAQ">
608 <b>Frequently Asked Questions</b><br>
609
610 <p><a name="SELinuxUDP">
611 <font color=red>Question</font>: Why is ProFTPD trying to open UDP sockets
612 that are blocked by my SELinux policies?<br>
613 <font color=blue>Answer</font>: The RADIUS protocol uses UDP, and thus using
614 the <code>mod_radius</code> module means that ProFTPD will open UDP sockets.
615 In terms of SELinux policies, RADIUS is very similar to NIS in its use of
616 UDP, and thus to allow these RADIUS UDP sockets, you can use:
617 <pre>
618 $ setsebool -P nis_enabled 1
619 </pre>
620
621 <p>
622 <hr>
623 <font size=2><b><i>
624 &copy; Copyright 2000-2021 TJ Saunders<br>
625 All Rights Reserved<br>
626 </i></b></font>
627 <hr>
628
629 </body>
630 </html>