Added default-user-config and default-group-config configuration options.

These allow setting a configuration file that will be loaded if a
user-specific or group-specific configuration file isn't found.
This commit is contained in:
Nikos Mavrogiannopoulos
2014-05-14 13:27:51 +02:00
parent 3f9a215f53
commit 788560b9ce
5 changed files with 35 additions and 5 deletions
+5
View File
@@ -125,6 +125,8 @@ static struct cfg_options available_options[] = {
{ .name = "route-del-cmd", .type = OPTION_STRING, .mandatory = 0 },
{ .name = "config-per-user", .type = OPTION_STRING, .mandatory = 0 },
{ .name = "config-per-group", .type = OPTION_STRING, .mandatory = 0 },
{ .name = "default-user-config", .type = OPTION_STRING, .mandatory = 0 },
{ .name = "default-group-config", .type = OPTION_STRING, .mandatory = 0 },
};
static const tOptionValue* get_option(const char* name, unsigned * mand)
@@ -512,6 +514,9 @@ unsigned force_cert_auth;
READ_STRING("config-per-user", config->per_user_dir);
READ_STRING("config-per-group", config->per_group_dir);
READ_STRING("default-user-config", config->default_user_conf);
READ_STRING("default-group-config", config->default_group_conf);
optionUnloadNested(pov);
}