l2tp: Add PAP auth information in ICCN

To support proxy auth.
This commit is contained in:
Samuel Thibault 2025-03-23 03:17:41 +01:00
parent e701644d37
commit 40796d2adb
4 changed files with 37 additions and 0 deletions

View file

@ -1046,6 +1046,12 @@ 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)
{
sess_local[s].auth_type = 3; // PAP
sess_local[s].auth_id = radius[r].id;
}
if (lac_rad_forwardtoremotelns(s, assignment_id, session[s].user))
{
int ro;