1RADSQLRELAY(8)             FreeRADIUS helper program            RADSQLRELAY(8)
2
3
4

NAME

6       radsqlrelay - relay SQL queries to a central database server
7
8

SYNOPSIS

10       radsqlrelay [-?]  [-d sql_driver] [-b database] [-f file] [-h host] [-u
11       user] [-P port] [-p password] [-1] [-x] file_path
12
13

DESCRIPTION

15       radsqlrelay tails a SQL logfile and forwards the queries to a  database
16       server. Used to replicate accounting records to one (central) database,
17       even if the database has extended downtime.
18
19       The SQL logfile is created by the rlm_sql_log module. The  module  must
20       be configured in the radiusd server before you can use radsqlrelay.
21
22

OPTIONS

24       -?     Print usage help information.
25
26       -d sql_driver
27              Driver to use: mysql, pg, oracle.
28
29       -b database
30              Name of the database to use.
31
32       -f file
33              Read password from file, instead of command line.
34
35       -h host
36              Connect to host.
37
38       -u user
39              User for login.
40
41       -P port
42              Port number to use for connection.
43
44       -p password
45              Password to use when connecting to server.
46
47       -1     One-shot mode: push the file to database and exit.
48
49       -x     Turn on debugging.
50
51       file_path
52              The pathname of the SQL logfile to use.
53
54

NOTES

56   Oracle driver
57       The  command  "radsqlrelay  -d oracle -b db.domain.tld sql-relay" reads
58       the database description stored in $TNS_ADMIN/tnsnames.ora:
59
60       db.domain.tld =
61         (DESCRIPTION =
62           (ADDRESS_LIST =
63             (ADDRESS = (PROTOCOL = TCP)(HOST = db.domain.tld)(PORT = 1521))
64           )
65           (CONNECT_DATA =
66             (SERVICE_NAME = <DB SID>)
67           )
68         )
69
70

SEE ALSO

72       rlm_sql_log(5)
73
74

AUTHOR

76       Nicolas Baradakis <nicolas.baradakis@cegetel.net>
77
78
79
80                                 19 June 2005                   RADSQLRELAY(8)
Impressum