Re: Login with authentication from database

2005-08-08 Thread Bill Schneider
If you're specifically interested in authentication from a database (tables for users, roles and mappings), and using Tomcat, the JDBCRealm is the way to go: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html#JDBCRealm You might not need to learn about JAAS if all you want is sim

Re: Login with authentication from database

2005-08-08 Thread Robert Taylor
If your using Tomcat 5.5.x, then this may help: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html#JAASRealm /robert Laurie Harper wrote: I haven't used container managed security very much but I think the way you'd do that is to set up multiple security realms in Tomcat (one pe

RE: Login with authentication from database

2005-08-08 Thread Albrecht Leiprecht
-Original Message- From: C.F. Scheidecker Antunes [mailto:[EMAIL PROTECTED] Sent: Monday, August 08, 2005 12:32 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Login with authentication from database Thanks Laurie! I have quite a few Struts and Tomcat books. What I wonder is

Re: Login with authentication from database

2005-08-07 Thread Gary VanMatre
I have seen this done in webshpere 5.x application server where you can create a custom security provider that acts as a stand-in for your J2EE security provider. This custom provider can authenticate principals, groups and users in groups to any data source. Sorry, can't speak for tomcat. Ga

Re: Login with authentication from database

2005-08-07 Thread Laurie Harper
I haven't used container managed security very much but I think the way you'd do that is to set up multiple security realms in Tomcat (one per application or one per database) and then configure your security constraints in the web.xml for each application. Your Tomcat books should have more de

Re: Login with authentication from database

2005-08-07 Thread C.F. Scheidecker Antunes
Thanks Laurie! I have quite a few Struts and Tomcat books. What I wonder is exactly where to set up JAAS. That's because I might have more than one app in the same Tomcat5 server. So I wonder if for each database/application I could configure JAAS separately, that is can I do it only within on

Re: Login with authentication from database

2005-08-07 Thread Laurie Harper
C.F. Scheidecker Antunes wrote: I am learning my ways through Struts having done Servlets and JSPs before. In order to have authentication functionalities with my Servlets I used to have a user table and a roles table. Once the user logs in he/she would be authenticated with the user name, pass

Re: Login with authentication from database

2005-08-07 Thread Daniel Schaller
Hi, look in the documention of your Web Container how to configure JAAS. Most of the container, such as Jetty, come with a JDBC JAAS Login module ready to use. Cheers, Daniel On 7 Aug 2005, at 22:53, C.F. Scheidecker Antunes wrote: Hello all, I am learning my ways through Struts having