waffle icon indicating copy to clipboard operation
waffle copied to clipboard

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

Open AniWar opened this issue 5 years ago • 1 comments

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

AniWar avatar Aug 21 '20 10:08 AniWar

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.

dblock avatar Aug 21 '20 13:08 dblock