-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Peter,
Peter Stavrinides wrote: > I have an Apache web server with Basic authentication configured to use > a Postgres database. Web application A (written in Perl) uses it. > > Web application B (written in Java) runs on Tomcat 5.5.20 on a different > physical server, it uses a JDBC realm with basic authentication once > again to connect to the same database and authenticate users. > > What I need to do is authenticate users once (on either server / > application), and allow the users to navigate from one application to > the other (I don't want to ask for passwords again). Can the servers > share a realm or is there a connector component or something I can use. What you are talking about is not realm-sharing since the concept of a "realm" really only exists on the Tomcat side. You really want some sort of cooperative login or something like that. First, you have to decide which type of authentication you prefer. For instance, if the user really cannot tell the difference between the webapps, does that mean that the URL spaces are the same? (i.e. the perl webapp lives in "/cool-product/whatever/*.pl" and the Java stuff lives in "/cool-product/whatever/*.jsp")? If that's the case, then you can probably configure Tomcat to use Basic authentication which is already being used by Apache httpd to do the authentication for your other application. The same path ("/cool-product") will result in the WWW-Auth information being sent to both applications. Since you have the same database for authentication in both webapps, either one can be the "first" to do authentication, and then the other app should respect the other's WWW-auth information. There are other ways, but this sounds like the most painless given your setup. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFt2nu9CaO5/Lv0PARAk8PAKCx6FT2r7wGaBX0TrhgcsdHY+Q07ACgk6uy +jtEpw9Nts3/zOgFTilzFCU= =mye9 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]