I had an issue where the RADIUS authentication requests on the server were not working as they should and rejecting devices, mainly Windows 10 devices, this was caused by two issues, so lets go though them now....
The error
Authentication Type: PEAP
EAP Type: -
Account Session Identifier: 39363033333243354442323838323931
Logging Results: Accounting information was written to the local log file.
Reason Code: 23
Reason: An error occurred during the Network Policy Server use of the Extensible Authentication Protocol (EAP). Check EAP log files for EAP errors.
On Windows Server 2019 with NPS role installed, open an admin command prompt & run the following command:
sc sidtype IAS unrestricted
Reboot the server
Attempt the connection
If this fails after a reboot you may need to enable the NPS rule in the firewall, to do that use this command:
Get-NetFirewallRule -DisplayGroup "Network Policy Server" | where DisplayName -like "*RADIUS*" | Set-NetFirewallRule -Service Any
Remove the rule run this:
Get-NetFirewallRule -DisplayGroup "Network Policy Server" | where DisplayName -like "*RADIUS*" | Set-NetFirewallRule -Service ias