};
#
-# Get password from /etc/raddb/naspasswd file.
+# Get password from naspasswd file.
# Returns (login, password).
#
sub naspasswd {
# See if the user is already logged-in at the 3Com/USR Total Control.
# (this routine by Alexis C. Villalon <alexisv@compass.com.ph>).
# You must have the Net::Telnet module from CPAN for this to work.
-# You must also have your /etc/raddb/naspasswd made up.
+# You must also have your naspasswd made up.
#
sub tc_tccheck {
#
fprintf(output, "Usage: %s [options]\n", program);
fprintf(output, "Options:\n");
fprintf(output, " -C Check configuration and exit.\n");
- fprintf(stderr, " -d <confdir> Set configuration directory (defaults to " CONFDIR ").\n");
+ fprintf(stderr, " -d <confdir> Configuration file directory (defaults to " CONFDIR ").\n");
fprintf(stderr, " -D <dictdir> Set main dictionary directory (defaults to " DICTDIR ").\n");
#ifndef NDEBUG
fprintf(output, " -e <seconds> Exit after the specified number of seconds. Useful for diagnosing \"crash-on-exit\" issues.\n");
#ifndef NDEBUG
fprintf(output, " -L <size> When running in memory debug mode, set a hard limit on talloced memory\n");
#endif
- fprintf(output, " -n <name> Read raddb/name.conf instead of raddb/%s.conf.\n", program);
+ fprintf(output, " -n <name> Read ${confdir}/name.conf instead of ${confdir}/%s.conf.\n", program);
fprintf(output, " -m Allow multiple processes reading the same %s.conf to exist simultaneously.\n", program);
#ifndef NDEBUG
fprintf(output, " -M Enable talloc memory debugging, and issue a memory report when the server terminates\n");
fprintf(output, "Usage: %s [options]\n", config->name);
fprintf(output, "Options:\n");
fprintf(output, " -c <count> Run packets through the interpreter <count> times\n");
- fprintf(output, " -d <confdir> Configuration files are in \"confdir/*\".\n");
+ fprintf(output, " -d <confdir> Configuration file directory. (defaults to " CONFDIR ").");
fprintf(output, " -D <dict_dir> Dictionary files are in \"dict_dir/*\".\n");
fprintf(output, " -f <file> Filter reply against attributes in 'file'.\n");
fprintf(output, " -h Print this help message.\n");
/* Automatically generated by "build-radpaths-h" */
#define LOGDIR "@logdir@"
#define LIBDIR "@libdir@"
-#define CONFDIR "@raddbdir@"
+#define CONFDIR "@raddbdir@"
#define RUNDIR "@localstatedir@/run"
#define SBINDIR "@sbindir@"
#define RADIR "@radacctdir@"
* This is just so that the callers don't need to call a million functions.
*
* @param[in] cs The root configuration section.
- * @param[in] dict_dir The path to the raddb directory.
+ * @param[in] conf_dir The path to the main configuration directory.
* @param[in] dict the main dictionary, usually the internal dictionary.
* @return
* - 0 on success.
* - -1 on failure.
*/
-int server_init(CONF_SECTION *cs, char const *dict_dir, fr_dict_t *dict)
+int server_init(CONF_SECTION *cs, char const *conf_dir, fr_dict_t *dict)
{
/*
* Initialize the dictionary attributes needed by the tmpl code.
* have created any attributes they need to, so that we can define
* additional protocol attributes, and add
*/
- switch (fr_dict_read(dict, dict_dir, FR_DICTIONARY_FILE)) {
+ switch (fr_dict_read(dict, conf_dir, FR_DICTIONARY_FILE)) {
case -1:
PERROR("Failed reading site-local dictionary");
return -1;
case 0:
- DEBUG2("Including dictionary file \"%s/%s\"", dict_dir, FR_DICTIONARY_FILE);
+ DEBUG2("Including dictionary file \"%s/%s\"", conf_dir, FR_DICTIONARY_FILE);
break;
default:
/** Set the global radius config directory.
*
* @param[in] config to alter.
- * @param[in] name to set as dir root e.g. /usr/local/etc/raddb.
+ * @param[in] name to set as main configuration directory.
*/
void main_config_confdir_set(main_config_t *config, char const *name)
{
char const *lib_dir;
char const *sbin_dir;
char const *run_dir;
- char const *confdir; //!< Path to raddb directory
+ char const *confdir; //!< Path to configuration directory
char const *prefix;
/** Execute a trigger - call an executable to process an event
*
* A trigger ties a state change (e.g. connection up) in a module to an action
- * (e.g. send an SNMP trap) defined in raddb/triggers.conf or in the trigger
+ * (e.g. send an SNMP trap) defined in triggers.conf or in the trigger
* section of a module. There's no setup for triggers, the triggering code
* just calls this function with the name of the trigger to run, and an optional
* interpreter if the trigger should run asynchronously.
return LIBDIR;
}
-/** Return the default raddb dir
+/** Return the default configuration dir
*
* This is set at build time from --prefix
* @return the value of CONFDIR
{
FILE *output = status ? stderr : stdout;
fprintf(output, "Usage: %s [ args ]\n", progname);
- fprintf(output, " -d confdir Configuration files are in \"raddbdir/*\".\n");
+ fprintf(output, " -d <confdir> Configuration file directory. (defaults to " CONFDIR ").");
fprintf(output, " -D <dictdir> Set main dictionary directory (defaults to " DICTDIR ").\n");
fprintf(output, " -e command Execute 'command' and then exit.\n");
fprintf(output, " -E Echo commands as they are being executed.\n");
fprintf(output, " -h Print usage help information.\n");
fprintf(output, " -i input_file Read commands from 'input_file'.\n");
fprintf(output, " -l <log_file> Commands which are executed will be written to this file.\n");
- fprintf(output, " -n name Read raddb/name.conf instead of raddb/radiusd.conf\n");
+ fprintf(output, " -n name Read ${confdir}/name.conf instead of ${confdir}/radiusd.conf\n");
fprintf(output, " -q Reduce output verbosity\n");
fprintf(output, " -s <server> Look in named server for name of control socket.\n");
fprintf(output, " -S <secret> Use argument as shared secret for authentication to the server.\n");
fr_perror("radmin");
if (errno == ENOENT) {
fprintf(stderr, "Perhaps you need to run the commands:");
- fprintf(stderr, "\tcd /etc/raddb\n");
+ fprintf(stderr, "\tcd " CONFDIR "\n");
fprintf(stderr, "\tln -s sites-available/control-socket "
"sites-enabled/control-socket\n");
fprintf(stderr, "and then re-start the server?\n");
This module implements SecurID token checking. It should be listed in the "authenticate" section.
-The module configuration is in the "securid" file. You will need to copy it by hand to the raddb/modules/directory.
+The module configuration is in the "securid" file. You will need to copy it by hand to the `mods-enabled/` directory.
There is a configure script, but you will most likely need to pass --with-securid-dir=<securid_path> argument.