Question about different subjects. DId Jonas itself (not Enhydra)supports
web application and .war files. IS there any info how to set it up?
Miro Halas
-----Original Message-----
From: Philippe Coq [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 10:52 AM
To: unplug
Cc: [EMAIL PROTECTED]
Subject: Re: Problems to run the Examples (ejbSample.war)
unplug wrote:
>
> Sorry for one more question.
> Do you mean I need to download the source and compile it on my own??
>
> Rgds,
> unplug
You can get the source of JOnAS via the web site or via CVS.
My idea was to provide a SecurityCtxInterceptor32 class
that would look like:
import org.apache.tomcat.request.SimpleRealm;
import org.apache.tomcat.core.Request ;
import org.apache.tomcat.core.Response ;
import org.enhydra.security.avs.api.SecurityCurrent ;
import org.enhydra.security.avs.api.SecurityContext ;
import java.security.Principal ;
public class SecurityCtxInterceptor32 extends SimpleRealm {
public SecurityCtxInterceptor32 () {
super () ;
}
public int authorize( Request req, Response response ) {
int result = super.authorize (req, response) ;
if (result == 0) {
Principal principal = req.getUserPrincipal() ;
//System.out.println ("Principal : "+ principal.getName()) ;
if (principal != null) {
SecurityContext ctx = new SecurityContext
(principal.getName()) ;
SecurityCurrent current = SecurityCurrent.getCurrent () ;
current.setSecurityContext(ctx) ;
}
}
return result ;
}
}
and then to modify the server.xml file like this:
<RequestInterceptor
className="org.apache.tomcat.request.SimpleRealm"
debug="1" />
<RequestInterceptor
className="SecurityCtxInterceptor32"
debug="0" />
with SecurityCtxInterceptor32 that can be seen via the CLASSPATH .
Unfortunately it is not sufficient....
the authentication occurs but the security context don't seem to be
propagated
we need tomcat expert to help us!..
regards,
--
Philippe
Philippe Coq Evidian Phone: (33) 04 76 29 78 49
Bull S.A - 1 rue de Provence - 38432 Echirolles Cedex France
Download our EJBServer at http://www.objectweb.org
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".