> From: Jeff Powell [mailto:[EMAIL PROTECTED]
> Subject: RE: context.xml and custom realm
>
> But so far all the examples with JAAS don't show how to
> just create the minimal framework for a webapp.

While it's true that a single JVM instance only allows specification of one 
login.config file at a time, that file can contain multiple entries, one for 
each webapp, if needed.  Each JAAS <Realm> must have an appName attribute 
pointing to its subsection of the login.config file.

Have you looked at the Tomcat doc for JAASRealm?
http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#JAASRealm

That's pretty much all we used to get it running, other than the JVM's JAAS 
config.  The key part is putting your LoginModule and Principal classes under 
the webapp's WEB-INF directory, putting the <Realm> inside the webapp's 
<Context> element, and setting useContextClassLoader to true.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to