Added the configure option server-name

If set it will be used to set the NAS_IDENTIFIER in radius.
This commit is contained in:
Nikos Mavrogiannopoulos
2015-02-21 08:20:16 +01:00
parent 4e459c578a
commit c1a6f4730b
10 changed files with 44 additions and 12 deletions
+5 -2
View File
@@ -69,6 +69,7 @@ static struct cfg_options available_options[] = {
{ .name = "select-group", .type = OPTION_MULTI_LINE, .mandatory = 0 },
{ .name = "custom-header", .type = OPTION_MULTI_LINE, .mandatory = 0 },
{ .name = "split-dns", .type = OPTION_MULTI_LINE, .mandatory = 0 },
{ .name = "server-name", .type = OPTION_STRING, .mandatory = 0 },
{ .name = "listen-host", .type = OPTION_STRING, .mandatory = 0 },
{ .name = "listen-host-is-dyndns", .type = OPTION_BOOLEAN, .mandatory = 0 },
{ .name = "compression", .type = OPTION_BOOLEAN, .mandatory = 0 },
@@ -687,7 +688,7 @@ unsigned urlfw_size = 0;
/* When adding allocated data, remember to modify
* reload_cfg_file();
*/
READ_STRING("listen-host", config->name);
READ_STRING("listen-host", config->listen_host);
READ_TF("listen-host-is-dyndns", config->is_dyndns, 0);
READ_STRING("listen-clear-file", config->unix_conn_file);
@@ -722,6 +723,7 @@ unsigned urlfw_size = 0;
READ_STRING("user-profile", config->xml_config_file);
#endif
READ_STRING("server-name", config->server_name);
READ_STRING("ca-cert", config->ca);
READ_STRING("default-domain", config->default_domain);
READ_STRING("crl", config->crl);
@@ -1098,7 +1100,8 @@ unsigned i;
DEL(config->ocsp_response);
DEL(config->banner);
DEL(config->dh_params_file);
DEL(config->name);
DEL(config->listen_host);
DEL(config->server_name);
DEL(config->pin_file);
DEL(config->srk_pin_file);
DEL(config->ca);