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

Glassfish4 : Realm waffle.apache.WindowsRealm is not an instance of com.sun.web.security.RealmAdapter, and will be ignored #1013

Open
AniWar opened this issue Aug 21, 2020 · 1 comment
Labels

Comments

@AniWar
Copy link

AniWar commented Aug 21, 2020

I'm using waffle mixed-authentication on Glassfish4 , I managed to change the waffle-tomcat jar to comply with web-core jar present in Glassfish . However , Glassfish does not treat 'waffle.apache.WindowsRealm' as proper realm , and ignores the authentication done by it , therefore I feel it restricts the resources . Is there any solution for this ?

[2020-08-21T13:07:07.439+0100] [glassfish 4.1] [SEVERE] [AS-WEB-GLUE-00225] [javax.enterprise.web] [tid: _ThreadID=48 _ThreadName=admin-listener(5)] [timeMillis: 1598011627439] [levelValue: 1000] [[
  Realm waffle.apache.WindowsRealm is not an instance of com.sun.web.security.RealmAdapter, and will be ignored]]

[2020-08-21T13:10:44.532+0100] [glassfish 4.1] [WARNING] [NCLS-SECURITY-05052] [javax.enterprise.system.core.security] [tid: _ThreadID=29 _ThreadName=http-listener-1(2)] [timeMillis: 1598011844532] [levelValue: 900] [[
  Subject is null.]]

image

@dblock
Copy link
Collaborator

dblock commented Aug 21, 2020

The mixed authenticator as is was for Tomcat AFAIK, looks like you're on the right track making code changes for it to work for Glassfish. I would make/wrap WindowsRealm a/into a com.sun.web.security.RealmAdapter and see whether you get any further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants