RE: Tomcat v4.01 refuses to install on WinXP

2002-01-09 Thread Dennis SELLINGER

I have an archive message that talks about tomcat 4.0. and java_home that
gives windows registry key values.  Check this out:

http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg39299.html

hope this helps

dennis.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 09, 2002 13:19
 To: Tomcat Users List
 Subject: Re: Tomcat v4.01 refuses to install on WinXP
 
 
 Graham Leggett presuntamente escribió:
 
 Is there is a single person out there who can say that
 jakarta-tomcat.4.0.1.exe has worked on Windows XP and a 
 v1.3 JDK of any
 kind? If so - what was the exact procedure you used?
 
 Well, I've just finished a fresh install over a new Win XP machine:
 
 1. Install Sun 1.3.1-02 SDK
 2. Install Tomcat 4.0.2-b1
 3. Start Tomcat
 4. Test Tomcat: http://localhost:8080 brings Tomcat's home 
 page and the 
 examples are running fine.
 
 Note: in this installation I haven't set JAVA_HOME and 
 Tomcat runs from 
 the shortcut in Start - Program Files (it has d java's path).
 
 Does anyone know what registry key the installer is looking 
 for? Perhaps
 we can set up this key manually as a workaround...?
 
 You can check under HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft. 
 Compare versions and paths between 
 Java Development Kit and Java Runtime Environment. I 
 have no clue 
 about IBM's JDK.
 
 Francisco J. Novella
 [EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Programmatic login with Tomcat 4.0.1

2002-01-04 Thread Dennis SELLINGER

I'm not sure I understand exactly what you want to do.  Do you want to
handle a login request on the server, or send an HTTP authentication header
from a client.

If you want to handle a login request on the server consider that tomcat is
being accessed by HTTP which has a reasonably well defined technique for
handling authentication. By allowing tomcat to handle authentication, when
you access a web application, tomcat will send your browser, application or
applet a security challenge that is typically handled by login dialog. You
can use any of the Tomcat authorization schemes
(basic/form/digest/certificat) to manage the authentication.  For BASIC and
DIGEST authentication (for example) your web browser will handle subsequent
authorization challenges transparently(since HTTP is stateless you must
authenticate with each access to a protected page).

I think rolling your own authentication scheme would likely be
unnecessarily complex and error prone, involving both authentication and
session tracking.  One would think that the various authentication schemes
(basic/etc.) and three security realms (memory, JDBC and JNDI) would be able
to handle this task in a more robust way.

If you want to pass a basic authentication header from a Java Client (or any
other client) it is relatively easy.  I have implemented a client that sent
a basic auth header in python and it essentially just concatinating the user
name and password and base64 encoding it (make sure that your server is
expecting an authenticated request or you might not see the auth user).  I
think the o'reilly servlet classes implement setting the basic
authentication header in thier servlet package (see www.servlets.com).

hope this helps,
dennis. 

 

 -Original Message-
 From: Sergei Batiuk [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 04, 2002 14:48
 To: Tomcat Users List
 Subject: RE: Programmatic login with Tomcat 4.0.1
 
 
 Well, but what about programmatic login, i. e. something like
 
   Context ctx = new InitialContext();
   UserManager um = ( UserManager )ctx.lookup( 
 java:comp/UserManager );
   um.login( login, password );
 
 Does Tomcat have an API similar to this? The thing is I have 
 a login form on
 my first page, where a user should login to access protected 
 functions (they
 are not displayed by default, and become available only 
 after a user has
 logged in).
 
 -Original Message-
 From: Ing. Gabriel Gajdos [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 04, 2002 3:24 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Programmatic login with Tomcat 4.0.1
 
 
 If you use BASIC authentication, user/password are contained in the
 Authorization HTTP 1.1 Header (in Base64 encoded form).
 Never tried, but should work when supplying correct data 
 into your HTTP
 request (including headers).
 
 | How do I programmatically login into TC 4.0.1?
 |
 | Sincirely,
 | Sergei Batiuk.
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]