geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vamsavardhana Reddy" <c1vams...@gmail.com>
Subject Re: EAR Security Realm Configuration
Date Mon, 24 Sep 2007 16:21:22 GMT
On 9/24/07, Mark Aufdencamp <mark@aufdencamp.com> wrote:
>
> Thanks for the quick reply David.
>
> If I understand you, I need to have a <security-realm-name> section
> defined in each webapps geronimo-web.xml without a <security> section
> defined, and then have a <security> section defined in the EAR.  This
> would mean no changes to the web.xml for either app.  Where does this go
> in the EAR?  The geronimo-application.xml? I'll check on the syntax:)


Yes.


For future reference, do all the EAR's webapps need to utilize the same
> realm, or can each webapp have its own relm?


It is not necessary that all web apps use the same realm.  You can use a
different security-realm-name in each webapp's geronimo-web.xml


> -------- Original Message --------
> > Subject: Re: EAR Security Realm Configuration
> > From: David Jencks <david_jencks@yahoo.com>
> > Date: Mon, September 24, 2007 11:31 am
> > To: user@geronimo.apache.org
> >
> > you only specify the security configuration itself once per ear.  For
> > each web-app you specify the security-realm that comes right before
> > the security configuration.  You might put the security element at
> > the top level of the ear plan rather than in one or the other web app
> > plan.
> >
> > hope this helps
> > david jencks
> >
> > On Sep 24, 2007, at 11:02 AM, Mark Aufdencamp wrote:
> >
> > > Hi All,
> > >
> > > I'm having a slight problem with a security realm in an EAR.  I
> > > have two
> > > webapps that I would like to authenticate via a container managed FORM
> > > Auth, webapp and webappadmin.  I have the webapp realm functioning
> > > without any issues.  Of course, I cut and pasted from webapp to
> > > webappadmin and attempted to deploy.  This resulted in a commom
> > > deployment exception - "Only one security configuration allowed per
> > > application".
> > >
> > > What's the proper approach to resolving this?
> > >
> > > Can I use/Do I need a second realm for the second web application?  As
> > > in a 1-1 correspondence between the app and the realm.
> > >
> > > If not how do I properly configuring the second app to utilize the
> > > realm?  Is there someway to define it in the EAR for both web apps?
> > >
> > > TIA
> > >
> > > Mark Aufdencamp
> > > Mark@Aufdencamp.com
> > >
>
>

Mime
View raw message