Here is the situation I'd like to create:
www.blah.com/priv- protected by Apache HTTP Basic Auth, realm "foo"www.blah.com/application- protected by Tomcat/Servlet HTTP Basic Auth, realm "foo"- User access 
/priv, apache requests login info, they provide and are given access - Same user then requests 
/application. Since they have authenticated to the "foo" realm in the previous step, I would like them to be let in directly. - If another users accesses 
/applicationwithout first going to/priv, Tomcat requires authentication (and then they could also later access/privwithout having to re-authenticate) 
Basically, I want apache and tomcat to share authentication realms and, ideally, user databases.
How could this be best achieved?