You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The issue is on the tinyradius library, tag 1.1.4_v2. I set my password to 32 character and receive an exception:
Caused by: java.lang.IllegalArgumentException: 32 > 16
at java.base/java.util.Arrays.copyOfRange(Arrays.java:4029)
at keycloak.plugins.radius//org.tinyradius.packet.AccessRequest.decodePapPassword(AccessRequest.java:345)
Expected behavior
The password should be of any size.
Desktop (please complete the following information):
OS: Arch Linux
Software: OpenVPN
Additional context
I encounter this problem when trying to activate my VPN.
The plugin answers with an AUTH FAILED, but looking at logs, we receive the exception I posted before.
Describe the bug
The issue is on the tinyradius library, tag
1.1.4_v2
. I set my password to 32 character and receive an exception:Expected behavior
The password should be of any size.
Desktop (please complete the following information):
Additional context
I encounter this problem when trying to activate my VPN.
The plugin answers with an AUTH FAILED, but looking at logs, we receive the exception I posted before.
We think we have identified the bug at line 345 of AccessRequest.java:
in particular this line
ciphertext = Arrays.copyOfRange(encryptedPass, i, 16);
should be
ciphertext = Arrays.copyOfRange(encryptedPass, i, i + 16);
otherwise when the passowrd length is > 16, the second parameter becomes greater that the last and
copyOfRange
fails.The text was updated successfully, but these errors were encountered: