Skip to content

Commit e0dbfb5

Browse files
committed
Clear any existing EAP packet (attribute 79) before sending new a MS-CHAP-V2 request.
1 parent 9f83b0c commit e0dbfb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Radius.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,7 @@ public function accessRequestEapMsChapV2($username, $password)
11601160

11611161
$this->attributesToSend = $attributes;
11621162
$this->setUsername($username)
1163+
->removeAttribute(79)
11631164
->setAttribute(79, $eapPacket)
11641165
->setIncludeMessageAuthenticator();
11651166

@@ -1345,7 +1346,7 @@ public function accessRequestEapMsChapV2($username, $password)
13451346
*/
13461347
public function changePasswordEapMsChapV2($username, $password, $newPassword)
13471348
{
1348-
1349+
$this->removeAttribute(79);
13491350
$attributes = $this->getAttributesToSend();
13501351

13511352
/*

0 commit comments

Comments
 (0)