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:16:56 +01:00
parent 4e459c578a
commit c1a6f4730b
10 changed files with 44 additions and 12 deletions

View File

@@ -62,7 +62,7 @@ void sec_auth_init(sec_mod_st * sec, struct cfg_st *config)
for (i=0;i<config->auth_methods;i++) {
if (config->auth[i].enabled && config->auth[i].amod && config->auth[i].amod->global_init)
config->auth[i].amod->global_init(sec, config->auth[i].additional);
config->auth[i].amod->global_init(sec, config->server_name, config->auth[i].additional);
}
}