Skip to content
Snippets Groups Projects
Commit 233f1bc8 authored by Sean Bright's avatar Sean Bright
Browse files

Remove some trailing whitespace before making content changes.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@202840 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 1fe9c73c
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
Asterisk can currently store CDRs into an MSSQL database in Asterisk can currently store CDRs into an MSSQL database in
two different ways: cdr\_odbc or cdr\_tds two different ways: cdr\_odbc or cdr\_tds
Call Data Records can be stored using unixODBC (which requires Call Data Records can be stored using unixODBC (which requires
the FreeTDS package) [cdr\_odbc] or directly by using just the the FreeTDS package) [cdr\_odbc] or directly by using just the
FreeTDS package [cdr\_tds] The following provide some FreeTDS package [cdr\_tds] The following provide some
...@@ -291,9 +291,9 @@ SQLite version 2 is supported in cdr\_sqlite. ...@@ -291,9 +291,9 @@ SQLite version 2 is supported in cdr\_sqlite.
\subsubsection{Installation of the Radiusclient library} \subsubsection{Installation of the Radiusclient library}
Download the sources from Download the sources from
\url{http://developer.berlios.de/projects/radiusclient-ng/} \url{http://developer.berlios.de/projects/radiusclient-ng/}
Untar the source tarball: Untar the source tarball:
\begin{verbatim} \begin{verbatim}
...@@ -310,15 +310,15 @@ SQLite version 2 is supported in cdr\_sqlite. ...@@ -310,15 +310,15 @@ SQLite version 2 is supported in cdr\_sqlite.
\end{verbatim} \end{verbatim}
\subsubsection{Configuration of the Radiusclient library} \subsubsection{Configuration of the Radiusclient library}
By default all the configuration files of the radiusclient library will By default all the configuration files of the radiusclient library will
be in \path{/usr/local/etc/radiusclient-ng} directory. be in \path{/usr/local/etc/radiusclient-ng} directory.
File "radiusclient.conf" File "radiusclient.conf"
Open the file and find lines containing the following: Open the file and find lines containing the following:
authserver localhost authserver localhost
This is the hostname or IP address of the RADIUS server used for This is the hostname or IP address of the RADIUS server used for
authentication. You will have to change this unless the server is authentication. You will have to change this unless the server is
running on the same host as your Asterisk PBX. running on the same host as your Asterisk PBX.
...@@ -330,10 +330,10 @@ SQLite version 2 is supported in cdr\_sqlite. ...@@ -330,10 +330,10 @@ SQLite version 2 is supported in cdr\_sqlite.
on the same host as your Asterisk PBX. on the same host as your Asterisk PBX.
\textbf{File "servers"} \textbf{File "servers"}
RADIUS protocol uses simple access control mechanism based on shared RADIUS protocol uses simple access control mechanism based on shared
secrets that allows RADIUS servers to limit access from RADIUS clients. secrets that allows RADIUS servers to limit access from RADIUS clients.
A RADIUS server is configured with a secret string and only RADIUS A RADIUS server is configured with a secret string and only RADIUS
clients that have the same secret will be accepted. clients that have the same secret will be accepted.
...@@ -347,7 +347,7 @@ SQLite version 2 is supported in cdr\_sqlite. ...@@ -347,7 +347,7 @@ SQLite version 2 is supported in cdr\_sqlite.
are going to use. are going to use.
\textbf{File "dictionary"} \textbf{File "dictionary"}
Asterisk uses some attributes that are not included in the Asterisk uses some attributes that are not included in the
dictionary of radiusclient library, therefore it is necessary to add dictionary of radiusclient library, therefore it is necessary to add
them. A file called dictionary.digium (kept in the contrib dir) them. A file called dictionary.digium (kept in the contrib dir)
...@@ -362,7 +362,7 @@ SQLite version 2 is supported in cdr\_sqlite. ...@@ -362,7 +362,7 @@ SQLite version 2 is supported in cdr\_sqlite.
Download sources tarball from: Download sources tarball from:
\url{http://freeradius.org/} \url{http://freeradius.org/}
Untar, configure, build, and install the server: Untar, configure, build, and install the server:
\begin{verbatim} \begin{verbatim}
...@@ -375,15 +375,15 @@ SQLite version 2 is supported in cdr\_sqlite. ...@@ -375,15 +375,15 @@ SQLite version 2 is supported in cdr\_sqlite.
All the configuration files of FreeRADIUS server will be in All the configuration files of FreeRADIUS server will be in
/usr/local/etc/raddb directory. /usr/local/etc/raddb directory.
\subsubsection{Configuration of the FreeRADIUS Server} \subsubsection{Configuration of the FreeRADIUS Server}
There are several files that have to be modified to configure the There are several files that have to be modified to configure the
RADIUS server. These are presented next. RADIUS server. These are presented next.
File "clients.conf" File "clients.conf"
File \path{/usr/local/etc/raddb/clients.conf} contains description of File \path{/usr/local/etc/raddb/clients.conf} contains description of
RADIUS clients that are allowed to use the server. For each of the RADIUS clients that are allowed to use the server. For each of the
clients you need to specify its hostname or IP address and also a clients you need to specify its hostname or IP address and also a
...@@ -396,26 +396,26 @@ SQLite version 2 is supported in cdr\_sqlite. ...@@ -396,26 +396,26 @@ SQLite version 2 is supported in cdr\_sqlite.
secret = mysecret secret = mysecret
shortname = foo shortname = foo
} }
\end{verbatim} \end{verbatim}
This fragment allows access from RADIUS clients on "myhost" if they use This fragment allows access from RADIUS clients on "myhost" if they use
"mysecret" as the shared secret. "mysecret" as the shared secret.
The file already contains an entry for localhost (127.0.0.1), so if you The file already contains an entry for localhost (127.0.0.1), so if you
are running the RADIUS server on the same host as your Asterisk server, are running the RADIUS server on the same host as your Asterisk server,
then modify the existing entry instead, replacing the default password. then modify the existing entry instead, replacing the default password.
File "dictionary" File "dictionary"
Note: as of version 1.1.2, the dictionary.digium file ships with FreeRADIUS. Note: as of version 1.1.2, the dictionary.digium file ships with FreeRADIUS.
The following procedure brings the dictionary.digium file to previous versions The following procedure brings the dictionary.digium file to previous versions
of FreeRADIUS. of FreeRADIUS.
File \path{/usr/local/etc/raddb/dictionary} contains the dictionary of File \path{/usr/local/etc/raddb/dictionary} contains the dictionary of
FreeRADIUS server. You have to add the same dictionary file FreeRADIUS server. You have to add the same dictionary file
(dictionary.digium), which you added to the dictionary of radiusclient-ng (dictionary.digium), which you added to the dictionary of radiusclient-ng
library. You can include it into the main file, adding the following line at the library. You can include it into the main file, adding the following line at the
end of file \path{/usr/local/etc/raddb/dictionary}: end of file \path{/usr/local/etc/raddb/dictionary}:
\$INCLUDE /path/to/dictionary.digium \$INCLUDE /path/to/dictionary.digium
That will include the same new attribute definitions that are used That will include the same new attribute definitions that are used
...@@ -429,7 +429,7 @@ SQLite version 2 is supported in cdr\_sqlite. ...@@ -429,7 +429,7 @@ SQLite version 2 is supported in cdr\_sqlite.
The module will be compiled as long as the radiusclient-ng The module will be compiled as long as the radiusclient-ng
library has been detected on your system. library has been detected on your system.
By default FreeRADIUS server will log all accounting requests into By default FreeRADIUS server will log all accounting requests into
\path{/usr/local/var/log/radius/radacct} directory in form of plain text files. \path{/usr/local/var/log/radius/radacct} directory in form of plain text files.
The server will create one file for each hostname in the directory. The The server will create one file for each hostname in the directory. The
...@@ -440,7 +440,7 @@ SQLite version 2 is supported in cdr\_sqlite. ...@@ -440,7 +440,7 @@ SQLite version 2 is supported in cdr\_sqlite.
separated values will be created in \path{/var/log/asterisk/cdr-csv}. separated values will be created in \path{/var/log/asterisk/cdr-csv}.
The configuration file for cdr\_radius.so module is \path{/etc/asterisk/cdr.conf} The configuration file for cdr\_radius.so module is \path{/etc/asterisk/cdr.conf}
This is where you can set CDR related parameters as well as the path to This is where you can set CDR related parameters as well as the path to
the radiusclient-ng library configuration file. the radiusclient-ng library configuration file.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment