LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-01-2009, 03:08 PM   #1
ShadowCat8
Member
 
Registered: Nov 2004
Location: Arcadia, CA
Distribution: Gentoo, Arch, (RedHat4.x-9.x, FedoraCore 1.x-4.x, Debian Potato-Sarge, LFS 6.0, etc.)
Posts: 209

Rep: Reputation: 43
[SOLVED] Tomcat 5 and DIGEST authentication


I have been searching and searching and trying to get this running, and am running out of time and hair in which to get this done. Has anyone gotten DIGEST authentication working properly in Tomcat 5?

I understand that there is a bug within IE5/IE6 in connecting to apache DIGEST login prompts, but even Firefox will not complete authentication and gives error 401 when trying to login.

Details:
JDBC Realm defined with SHA digest inside <Engine> in server.xml
DIGEST authentication with SHA algorithm defined in <login-config> of application's web.xml with <security-container> defined encompassing application pages.

Actions and Results (using Firefox):
  1. Set the SHA definition in both Realm and login-config. Try DIGEST login => Error 401.
  2. Set SHA definition in Realm, but set BASIC authentication in login-config. Try BASIC login => Server takes login information in plaintext, but digests password before sending to database. Login successful.
  3. Set BASIC authentication in Realm but SHA DIGEST in login-config. Try DIGEST login => Error 401.

Can anyone shed some light on this, please?

TIA.

Last edited by ShadowCat8; 09-30-2009 at 02:15 PM. Reason: Solved! W00T!
 
Old 09-30-2009, 02:14 PM   #2
ShadowCat8
Member
 
Registered: Nov 2004
Location: Arcadia, CA
Distribution: Gentoo, Arch, (RedHat4.x-9.x, FedoraCore 1.x-4.x, Debian Potato-Sarge, LFS 6.0, etc.)
Posts: 209

Original Poster
Rep: Reputation: 43
FINALLY GOT IT!!!

The issue I was running into is a built-in filter to Tomcat 5.5 that will block any calls to the IP address of 127.0.0.1. You MUST bind your database to the actual IP address of the machine to have it seamlessly work with Tomcat 5.5.

A LONG way to go for such a simple answer! hehe

Hope this helps others, too.
 
  


Reply

Tags
authentication, tomcat


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Digest authentication with Squid (need MsIE6 instructions) n_f General 1 09-01-2009 02:41 PM
Digest authentication not working on default Apache installation on Slackware 12.1 Stuart P. Bentley Linux - Server 3 06-08-2009 03:33 PM
Digest Authentication Glitch paganinipro Linux - Server 3 02-01-2008 07:40 PM
apache hangs when starting -> Digest: generating secret for digest authentication ... jma Linux - Networking 4 02-22-2007 01:02 AM
PHP and Apache Digest Authentication newuser455 Programming 3 08-17-2006 07:05 AM


All times are GMT -5. The time now is 09:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration