#
######################################################################
+#
+# In 1.x, the "authorize", etc. sections were global in
+# radiusd.conf. As of 2.0, they MUST be in a server section.
+#
+# The server section with no virtual server name is the "default"
+# section. It is used when no server name is specified.
+#
+# We don't indent the rest of this file, because doing so
+# would make it harder to read.
+#
+server {
+
# Authorization. First preprocess (hints and huntgroups files),
# then realms, and finally look in the "users" file.
#
#
pap
-
#
# If "status_server = yes", then Status-Server messages are passed
# through the following section, and ONLY the following section.
# }
}
+
+} # default server block
* directive, UNLESS there are no clients in the server.
*/
client_cs = NULL;
- if (this->server) {
- client_cs = cf_section_sub_find_name2(mainconfig.config,
- "server",
- this->server);
-
- /*
- * Found a "server foo" section, but there are no
- * clients in it. Don't use this section.
- */
- if (client_cs &&
- (cf_section_sub_find(client_cs, "client") == NULL)) {
- client_cs = NULL;
- }
+ client_cs = cf_section_sub_find_name2(mainconfig.config,
+ "server",
+ this->server);
+
+ /*
+ * Found a "server foo" section, but there are no
+ * clients in it. Don't use this section.
+ */
+ if (client_cs &&
+ (cf_section_sub_find(client_cs, "client") == NULL)) {
+ client_cs = NULL;
}
/*
cs = cf_subsection_find_next(config, cs, "server")) {
const char *name2 = cf_section_name2(cs);
- DEBUG2("server %s {", name2);
+ if (name2) {
+ DEBUG2("server %s {", name2);
+ } else {
+ DEBUG2("server {");
+ }
if (load_byspace(cs, name2, do_component) < 0) {
DEBUG2("}");
return -1;
}
DEBUG2("}");
}
-
- if (load_byspace(config, NULL, do_component) < 0) {
- return -1;
- }
return 0;
}