tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53777] Ability to bundle JAAS Configuration in Webappp
Date Fri, 24 Aug 2012 15:29:46 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53777

--- Comment #3 from eolivelli <eolivelli@gmail.com> ---
Created attachment 29275
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29275&action=edit
Patch on JAASRealm (tomcat 7 trunk)

I tried to write a patch against JAASREalm.java (don't know if it is the
correct format)

Patch is for Tomcat 7 trunk

this is what is does:
- adds "configfile" property (will be resolved as
ClassLoader.getResource().toURI) to require the use of a custom JAAS
Configuration file
- instantiates a "sun" ConfigFile (using Reflection) to have a Configuration
- uses the 4-args constructor of LoginContext (in order to use the custom
configuration)
- sets a work-around for a bug in Realm setup (parseClassNames) because
sometimes that method is not called with a good contextclassloader

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message