3 rlm_dbm_parser - transforms simple syntax into rlm_dbm format
19 \fBrlm_dbm_parser\fP reads a file of the syntax defined below, and writes
20 a database file usable by rlm_dbm or edits current database.
25 \fIrlm_dbm_parser\fP reads a format similar to the one used by the files
26 module. In incomplete RFC2234 ABNF, it looks like this:
30 entry = identifier TAB definition
31 identifier = username / group-name
34 definition = (check-item ",")* LF ( *( reply-item ",") / ";" ) LF
35 check-item = AS IN FILES
36 reply-item = AS IN FILES
37 * need definition of username and groupname
40 As an example, these are the standard files definitions (files module).
43 DEFAULT Service-Type == Framed-User
44 Framed-IP-Address = 255.255.255.254,
46 Service-Type = Framed-User,
49 #except who call from number 555-666
50 DEFAULT Auth-Type := Reject,Service-Type ==Framed-User,
51 Calling-Station-ID == "555-666"
53 #or call number 555-667
54 DEFAULT Auth-Type := Reject,Service-Type ==Framed-User,
55 Calling-Station-ID == "555-667"
58 To be a valid rlm_dbm input file, it should look like this:
61 DEFAULT Service-Type == Framed-User # (1)
62 Framed-IP-Address = 255.255.255.254, # comma, list cont'd
64 Service-Type = Framed-User,
65 Fall-Through = Yes # \\n, end of list
66 Auth-Type := Reject,Service-Type ==Framed-User, # (2)
67 Calling-Station-ID == "555-666"
69 Auth-Type := Reject,Service-Type ==Framed-User, # (3)
70 Calling-Station-ID == "555-667"
74 This user (the DEFAULT user) contains three entries, 1, 2 and 3. The
75 first entry has a list of reply items, terminated by a reply item
76 without a trailing comma. Entries 2 and 3 has empty reply lists, as
77 indicated by the semicolon. This is necessary to separate an empty
78 line (which is ignored) from the empty list.
79 Definition Fall-Through = Yes used in order to say module to check next
80 record. By default Fall-Through = Yes.
85 Use \fIraddb\fP as the radiusd configuration directory.
86 .IP \-i\ \fIinputfile\fP
87 Use \fIfile\fP as the input file. If not defined then use standard input.
88 .IP \-o\ \fIoutputfile\fP
89 Use \fIfile\fP as the output file.
91 Create a new database (empty output file before writing)
93 Enable debug mode. Multiple x flags increase debug level.
95 Do not print statistics (quiet).
97 Print the version and exit.
99 Remove a username or group name from the database.
106 Andrei Koulik <rlm_dbm@agk.nnov.ru>
109 Bjørn Nordbø <bn@nextra.com>