mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user