Reworking the EAP CN matching option from admin options to extended options

This commit is contained in:
Evengard committed 2023-01-24 12:18:20 +03:00
1 parent 0a60cdf141
commit 26403c70e3
11 files changed
+15 -9

No files matched your search

+1 -1
View File
@@ -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 && GetHubAdminOption(hub, "allow_eap_tls_match_user_by_cert") == true)
if (user == NULL && hub->Option->AllowEapMatchUserByCert == true)
{
user = AcGetUserByCert(hub, p->Eap_Identity.UserName);
if (user != NULL)