<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="resource-type" content="document"> <link rel="stylesheet" href="../style.css" type="text/css" media="all"> <title> RADIUS.CONF(5)</title> </head> <body> <div class="mandoc"> <table summary="Document Header" class="head" width="100%"> <col width="30%"> <col width="30%"> <col width="30%"> <tbody> <tr> <td class="head-ltitle"> RADIUS.CONF(5)</td> <td class="head-vol" align="center"> File Formats Manual</td> <td class="head-rtitle" align="right"> RADIUS.CONF(5)</td> </tr> </tbody> </table> <div class="section"> <h1 id="x4e414d45">NAME</h1> <b class="name">radius.conf</b> — <span class="desc">RADIUS client configuration file</span></div> <div class="section"> <h1 id="x53594e4f50534953">SYNOPSIS</h1> <i class="file">/etc/radius.conf</i></div> <div class="section"> <h1 id="x4445534352495054494f4e">DESCRIPTION</h1> <b class="name">radius.conf</b> contains the information necessary to configure the RADIUS client library. It is parsed by <a class="link-man" href="../html3/rad_config.html">rad_config(3)</a>. The file contains one or more lines of text, each describing a single RADIUS server which will be used by the library. Leading white space is ignored, as are empty lines and lines containing only comments.<p> A RADIUS server is described by three to five fields on a line:<p> <ul style="margin-top: 0.00em;margin-bottom: 0.00em;margin-left: 5.00ex;" class="list list-item"> <li class="list-item" style="margin-top: 0.00em;"> Service type</li> <li class="list-item" style="margin-top: 0.00em;"> Server host</li> <li class="list-item" style="margin-top: 0.00em;"> Shared secret</li> <li class="list-item" style="margin-top: 0.00em;"> Timeout</li> <li class="list-item" style="margin-top: 0.00em;"> Retries</li> </ul> <p> The fields are separated by white space. The ‘<code class="lit">#</code>' character at the beginning of a field begins a comment, which extends to the end of the line. A field may be enclosed in double quotes, in which case it may contain white space and/or begin with the ‘<code class="lit">#</code>' character. Within a quoted string, the double quote character can be represented by ‘<code class="lit">\"</code>', and the backslash can be represented by ‘<code class="lit">\\</code>'. No other escape sequences are supported.<p> The first field gives the service type, either ‘<code class="lit">auth</code>' for RADIUS authentication or ‘<code class="lit">acct</code>' for RADIUS accounting. If a single server provides both services, two lines are required in the file. Earlier versions of this file did not include a service type. For backward compatibility, if the first field is not ‘<code class="lit">auth</code>' or ‘<code class="lit">acct</code>' the library behaves as if ‘<code class="lit">auth</code>' were specified, and interprets the fields in the line as if they were fields two through five.<p> The second field specifies the server host, either as a fully qualified domain name or as a dotted-quad IP address. The host may optionally be followed by a ‘<code class="lit">:</code>' and a numeric port number, without intervening white space. If the port specification is omitted, it defaults to the ‘<code class="lit">radius</code>' or ‘<code class="lit">radacct</code>' service in the <i class="file">/etc/services</i> file for service types ‘<code class="lit">auth</code>' and ‘<code class="lit">acct</code>', respectively. If no such entry is present, the standard ports 1812 and 1813 are used.<p> The third field contains the shared secret, which should be known only to the client and server hosts. It is an arbitrary string of characters, though it must be enclosed in double quotes if it contains white space. The shared secret may be any length, but the RADIUS protocol uses only the first 128 characters. N.B., some popular RADIUS servers have bugs which prevent them from working properly with secrets longer than 16 characters.<p> The fourth field contains a decimal integer specifying the timeout in seconds for receiving a valid reply from the server. If this field is omitted, it defaults to 3 seconds.<p> The fifth field contains a decimal integer specifying the maximum number of attempts that will be made to authenticate with the server before giving up. If omitted, it defaults to 3 attempts. Note, this is the total number of attempts and not the number of retries.<p> Up to 10 RADIUS servers may be specified for each service type. The servers are tried in round-robin fashion, until a valid response is received or the maximum number of tries has been reached for all servers.<p> The standard location for this file is <i class="file">/etc/radius.conf</i>. But an alternate pathname may be specified in the call to <a class="link-man" href="../html3/rad_config.html">rad_config(3)</a>. Since the file contains sensitive information in the form of the shared secrets, it should not be readable except by root.</div> <div class="section"> <h1 id="x46494c4553">FILES</h1> <i class="file">/etc/radius.conf</i></div> <div class="section"> <h1 id="x4558414d504c4553">EXAMPLES</h1><pre style="margin-left: 0.00ex;" class="lit display"> # A simple entry using all the defaults: acct radius1.domain.com OurLittleSecret # A server still using the obsolete RADIUS port, with increased # timeout and maximum tries: auth auth.domain.com:1645 "I can't see you" 5 4 # A server specified by its IP address: auth 192.168.27.81 $X*#..38947ax-+=</pre> </div> <div class="section"> <h1 id="x53454520414c534f">SEE ALSO</h1> <a class="link-man" href="../html3/libradius.html">libradius(3)</a><p> <span class="ref"><span class="ref-auth">C. Rigney, et al</span>, <span class="ref-title">Remote Authentication Dial In User Service (RADIUS)</span>, <span class="ref-opt">RFC 2138</span>.</span><p> <span class="ref"><span class="ref-auth">C. Rigney</span>, <span class="ref-title">RADIUS Accounting</span>, <span class="ref-opt">RFC 2139</span>.</span></div> <div class="section"> <h1 id="x415554484f5253">AUTHORS</h1> This documentation was written by <span class="author">John Polstra</span>, and donated to the <span class="unix">FreeBSD</span> project by Juniper Networks, Inc.</div> <table summary="Document Footer" class="foot" width="100%"> <col width="50%"> <col width="50%"> <tbody> <tr> <td class="foot-date"> October 30, 1999</td> <td class="foot-os" align="right"> NetBSD 6.0</td> </tr> </tbody> </table> </div> </body> </html>