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


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

Rep: Reputation: 52
[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.

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?


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

Original Poster
Rep: Reputation: 52

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 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.


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 03:41 PM
Digest authentication not working on default Apache installation on Slackware 12.1 Stuart P. Bentley Linux - Server 3 06-08-2009 04:33 PM
Digest Authentication Glitch paganinipro Linux - Server 3 02-01-2008 08:40 PM
apache hangs when starting -> Digest: generating secret for digest authentication ... jma Linux - Networking 4 02-22-2007 02:02 AM
PHP and Apache Digest Authentication newuser455 Programming 3 08-17-2006 08:05 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:01 PM.

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