• Home
  • Raw
  • Download

Lines Matching refs:filename

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