l2tp: Add CHAP auth information in ICCN

To support proxy auth.
This commit is contained in:
Samuel Thibault 2025-03-28 20:14:24 +01:00
parent 12cc3c39b0
commit 75144a546c
4 changed files with 26 additions and 4 deletions

View file

@ -1046,11 +1046,15 @@ void processrad(uint8_t *buf, int len, char socket_index)
LOG(3, s, session[s].tunnel, "Select Tunnel Remote LNS for assignment_id == %s\n", assignment_id);
if (!radius[r].chap)
if (radius[r].chap)
{
sess_local[s].auth_type = 2; // PAP
}
else
{
sess_local[s].auth_type = 3; // PAP
sess_local[s].auth_id = radius[r].id;
}
sess_local[s].auth_id = radius[r].id;
if (lac_rad_forwardtoremotelns(s, assignment_id, session[s].user))
{