mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Merge pull request #1773 from domosekai/radius
Cedar/Proto_PPP: Fix radius authentication
This commit is contained in:
commit
e20fa9ec2e
@ -1265,8 +1265,6 @@ bool PPPProcessEAPResponsePacket(PPP_SESSION *p, PPP_PACKET *pp, PPP_PACKET *req
|
|||||||
UINT64 offer = 0;
|
UINT64 offer = 0;
|
||||||
PPP_LCP *c;
|
PPP_LCP *c;
|
||||||
UCHAR ms_chap_v2_code[3];
|
UCHAR ms_chap_v2_code[3];
|
||||||
char username[MAX_SIZE];
|
|
||||||
char hubname[MAX_SIZE];
|
|
||||||
HUB *hub;
|
HUB *hub;
|
||||||
bool found = false;
|
bool found = false;
|
||||||
UINT authtype = AUTHTYPE_ANONYMOUS;
|
UINT authtype = AUTHTYPE_ANONYMOUS;
|
||||||
@ -1346,7 +1344,7 @@ bool PPPProcessEAPResponsePacket(PPP_SESSION *p, PPP_PACKET *pp, PPP_PACKET *req
|
|||||||
char client_ip_tmp[256];
|
char client_ip_tmp[256];
|
||||||
IPToStr(client_ip_tmp, sizeof(client_ip_tmp), &p->ClientIP);
|
IPToStr(client_ip_tmp, sizeof(client_ip_tmp), &p->ClientIP);
|
||||||
Debug("EAP-MSCHAPv2 creating EAP RADIUS client\n");
|
Debug("EAP-MSCHAPv2 creating EAP RADIUS client\n");
|
||||||
p->EapClient = HubNewEapClient(p->Cedar, hubname, client_ip_tmp, username, "L3:PPP");
|
p->EapClient = HubNewEapClient(p->Cedar, p->Eap_Identity.HubName, client_ip_tmp, p->Eap_Identity.UserName, "L3:PPP");
|
||||||
|
|
||||||
if (p->EapClient == NULL)
|
if (p->EapClient == NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user