clients = NULL;
if ((fp = fopen(file, "r")) == NULL) {
- radlog(L_CONS|L_ERR, "cannot open %s", file);
- return -1;
+ /* The clients file is no longer required. All configuration
+ information is read from radiusd.conf and friends. If
+ clients exists it will be used, but if it doesn't no harm
+ done. */
+ return 0;
}
while(fgets(buffer, 256, fp) != NULL) {
realms = NULL;
if ((fp = fopen(file, "r")) == NULL) {
-#if 1 /* For now - realms file is not obligatory */
+ /* The realms file is not mandatory. If it exists it will
+ be used, however, since the new style config files are
+ more robust and flexible they are more likely to get used.
+ So this is a non-fatal error. */
return 0;
-#else
- radlog(L_CONS|L_ERR, "cannot open %s", file);
- return -1;
-#endif
}
while(fgets(buffer, 256, fp) != NULL) {
lineno++;
naslist = NULL;
if ((fp = fopen(file, "r")) == NULL) {
- radlog(L_CONS|L_ERR, "cannot open %s", file);
- return -1;
+ /* The naslist file is no longer required. All configuration
+ information comes from radiusd.conf. If naslist exists it
+ will be used, but if it doesn't exist it will be silently
+ ignored. */
+ return 0;
}
while(fgets(buffer, 256, fp) != NULL) {
lineno++;