Skip to content

Commit

Permalink
Require "virtual_server" for TTLS and PEAP
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Dec 15, 2015
1 parent d433c19 commit 0c0ba93
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/rlm_eap/types/rlm_eap_peap/rlm_eap_peap.c
Expand Up @@ -92,6 +92,11 @@ static int mod_instantiate(CONF_SECTION *cs, void **instance)
return -1;
}

if (!inst->virtual_server) {
ERROR("rlm_eap_ttls: A 'virtual_server' MUST be defined for security");
return -1;
}

/*
* Convert the name to an integer, to make it easier to
* handle.
Expand Down
5 changes: 5 additions & 0 deletions src/modules/rlm_eap/types/rlm_eap_ttls/rlm_eap_ttls.c
Expand Up @@ -103,6 +103,11 @@ static int mod_instantiate(CONF_SECTION *cs, void **instance)
return -1;
}

if (!inst->virtual_server) {
ERROR("rlm_eap_ttls: A 'virtual_server' MUST be defined for security");
return -1;
}

/*
* Convert the name to an integer, to make it easier to
* handle.
Expand Down

0 comments on commit 0c0ba93

Please sign in to comment.