Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.sun.jna.LastErrorException: GetLastError() returned 15105 #2358

Closed
mar1u50 opened this issue May 14, 2024 · 2 comments
Closed

com.sun.jna.LastErrorException: GetLastError() returned 15105 #2358

mar1u50 opened this issue May 14, 2024 · 2 comments

Comments

@mar1u50
Copy link

mar1u50 commented May 14, 2024

We have an authentication module that uses Waffle behind the scenes. For one particular customer and one specific user, we encounter the following exception:

 GetLastError() returned 15105 com.sun.jna.LastErrorException: GetLastError() returned 15105 at com.sun.jna.platform.win32.Kernel32Util.formatMessage(Kernel32Util.java:199) at com.sun.jna.platform.win32.Kernel32Util.formatMessage(Kernel32Util.java:219) at com.sun.jna.platform.win32.Win32Exception.<init>(Win32Exception.java:69) at com.sun.jna.platform.win32.Win32Exception.<init>(Win32Exception.java:56) at waffle.windows.auth.impl.WindowsAuthProviderImpl.acceptSecurityToken(WindowsAuthProviderImpl.java:168)

Everything works as expected for other customers and even for this customer for other users. Any idea what could be wrong? I have already checked the troubleshooting guide but didn't find anything related.

@mar1u50
Copy link
Author

mar1u50 commented May 14, 2024

Not sure if related .....

We discovered in the Event Viewer during a user login attempt the error 0XC0000413 – "Logon Failure: The machine you are logging onto is protected by an authentication firewall. The specified account is not allowed to authenticate to the machine".

The customer said no firewall prevents the user from logging in.

@mar1u50
Copy link
Author

mar1u50 commented May 16, 2024

We were able to resolve this issue, We needed to add users to one AD group which allows access to the domain where the application is located.

@mar1u50 mar1u50 closed this as completed May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant