mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-07 08:14:58 +03:00
Hiding the EAP-TLS match user by certificate behind an admin option, disabled by default
This commit is contained in:
@ -45,6 +45,7 @@ static bool g_vgs_emb_tag = false;
|
||||
ADMIN_OPTION admin_options[] =
|
||||
{
|
||||
{"allow_hub_admin_change_option", 0},
|
||||
{"allow_eap_tls_match_user_by_cert", 0},
|
||||
{"max_users", 0},
|
||||
{"max_multilogins_per_user", 0},
|
||||
{"max_groups", 0},
|
||||
|
@ -1295,7 +1295,7 @@ bool PPPProcessEAPResponsePacket(PPP_SESSION *p, PPP_PACKET *pp, PPP_PACKET *req
|
||||
AcLock(hub);
|
||||
{
|
||||
USER *user = AcGetUser(hub, p->Eap_Identity.UserName);
|
||||
if (user == NULL)
|
||||
if (user == NULL && GetHubAdminOption(hub, "allow_eap_tls_match_user_by_cert") == true)
|
||||
{
|
||||
user = AcGetUserByCert(hub, p->Eap_Identity.UserName);
|
||||
if (user != NULL)
|
||||
|
Reference in New Issue
Block a user