Home | History | Annotate | Download | only in radius

Lines Matching refs:filename

53 static int set_option_str(char *filename, int line, OPTION *option, char *p)
63 static int set_option_int(char *filename, int line, OPTION *option, char *p)
68 error("%s: line %d: bogus option value", filename, line);
83 static int set_option_srv(char *filename, int line, OPTION *option, char *p)
91 error("%s: line %d: bogus option value", filename, line);
120 error("%s: line %d: no default port for %s", filename, line, option->name);
133 static int set_option_auo(char *filename, int line, OPTION *option, char *p)
138 warn("%s: line %d: bogus option value", filename, line);
155 error("%s: auth_order: unknown keyword: %s", filename, p);
167 error("%s: auth_order: unknown or unexpected keyword: %s", filename, p);
186 int rc_read_config(char *filename)
193 if ((configfd = fopen(filename,"r")) == NULL)
195 error("rc_read_config: can't open %s: %m", filename);
212 error("%s: line %d: bogus format: %s", filename, line, p);
219 warn("%s: line %d: unrecognized keyword: %s", filename, line, p);
224 error("%s: line %d: duplicate option line: %s", filename, line, p);
234 if (set_option_str(filename, line, option, p) < 0)
238 if (set_option_int(filename, line, option, p) < 0)
242 if (set_option_srv(filename, line, option, p) < 0)
246 if (set_option_auo(filename, line, option, p) < 0)
256 return test_config(filename);
308 static int test_config(char *filename)
317 error("%s: no authserver specified", filename);
322 error("%s: no acctserver specified", filename);
327 error("%s: no servers file specified", filename);
332 error("%s: no dictionary specified", filename);
338 error("%s: radius_timeout <= 0 is illegal", filename);
343 error("%s: radius_retries <= 0 is illegal", filename);
352 error("%s: not a regular file: %s", filename, file);
356 error("%s: file not found: %s", filename, file);
363 error("%s: not a regular file: %s", filename, file);
367 error("%s: file not found: %s", filename, file);
374 error("%s: login_tries <= 0 is illegal", filename);
379 error("%s: seqfile not specified", filename);
384 error("%s: login_timeout <= 0 is illegal", filename);
389 error("%s: mapfile not specified", filename);
394 error("%s: nologin not specified", filename);