radmind − Remote administration daemon |
radmind [ −dBrUV ] [ −a bind-address ] [ −b backlog ] [ −D path ] [ −F syslog-facility ] [ −L syslog-level ] [ −m max-connections ] [ −P ca-directory ] [ −p port ] [ −u umask ] [ −w auth-level ] [ −x ca-pem-file ] [ −y cert-pem-file ] [ −z private-key-file ] [ −Z max-compression-level ] |
Radmind uses the radmind access protocol to communicate with radmind clients. On startup, radmind changes directory to _RADMIND_PATH, creates command, file, special, tmp, tmp/file, tmp/transcript and transcript ( with permissions 0750 ) if they do not exist, and begins listening on the radmind port ( by default 6662 ) for incoming connections. With the -D option, radmind will use path as its working directory. Radmind forks a child for each connection. The file config contains a list of known clients that can connect to radmind, one per line. Each line contains the CN, domain name or IP address of the client and the client’s command file. The server checks each line of the config file, first checking to see if the connecting client’s CN, domain name, and finally IP address match in that order. CNs and domain names are case insensitive. If the optional third field begins with a ’#’, it is ignored and treated as an in-line comment. Lines that are blank or begin with ’#’ are ignored. There are several supported wildcard patterns similar to shell globbing. by "<min-max>" where min is the lower bound and max is the upper bound. ’?’ matches any single character. The square bracket character list, "[abcd]", will match any single character within the brackets. Comma-separated values contained in curly braces, "{riverrun,past,Eve}" will match the first whole string found. ’\’ can be used to escape any character. A client is only given access to command files and transcripts listed in their base command file as determined by the config file. |
command |
Stores command files. |
||
transcripts |
Stores transcripts. |
||
file |
All files served from the radmind server are stored in the file directory. All files for a given transcript are stored in file/<transcript> where <transcript> is the name of the transcript. A file is stored in file/<transcript>/<path> where <path> is the file’s path as listed in the transcript. |
||
special |
All special files are stored in special. The special files for a given host are stored in special/<key> where <key> is the client’s CN, fully qualified domain name or IP address as matched in the config file. Individual special files are stored in special/<host>/<path> where <path> is the path of the special file as listed in the client’s command file. |
||
tmp/file |
All files stored on the server using the STOR command are saved in tmp/file. Files for a given transcript are stored in tmp/transcript/<transcript> /<path> where <transcript> is the name of the transcript and <path> is the file’s path as given in the STOR command. |
||
tmp/transcript |
All transcripts stored on the server using the STOR command are saved in tmp/transcript. |
Radmind currently supports the following Radmind Access Protocol ( RAP ) requests: |
QUIT |
terminate session |
||
NOOP |
do nothing |
||
HELP |
display helpful message |
||
STAT |
stat a transcript, command or special file. When statting a command file or transcript, the mode, UID and GID default to 0444, 0, and 0 respectively. If no command file is specified, the server returns information on the base command file as indicated in the config file. |
Status of a special file is determined by a single transcript line listed in a file named special/<special-file-path>.T , where <special-file-path> is the full path to the special file. If that does not exist, a listing for the file in the transcript/special.T transcript in the transcript directory will be used. If neither of those exist, the defaults are returned. |
RETR |
retrieve a file, transcript command or special file. If no command file is specified, the server returns the base command file as indicated in the config file. |
||
STOR |
store a file or transcript. If user authentication is enabled, this command is only valid after the client sends a successful LOGI. |
||
STAR |
Start TLS. If the server is run with an authorization level of 2, this command must be given before a client can send a STAT, RETR, or STOR. |
||
LOGI |
Login user. This command is only valid after TLS has been started. |
||
COMP |
start compression |
||
REPO |
report a client status message. The daemon logs the message in the following format: |
report HOSTNAME IP CN - EVENT MESSAGE... First the string "report", followed by the client’s hostname and IP address. If the client authenticates to the server with a certificate, its common name will be listed next. If the client does not present a certificate, a ’-’ will be listed. Next, a ’-’ is printed as a placeholder for a future field. Finally, the event and message are logged as reported by the client. |