You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Uma Shanker <as...@yahoo.com> on 2000/07/10 12:28:07 UTC

Basic design questions - User Authentication

Hello !!!

Please help me to understand these question.

1. How is user authentication is done in tomcat+Apache server. Is it local OS based or apache has special way to store user's.

2. I want to store all the information about the user, in Database(using JDBC) and just userid and password independently. Where I can do this, DO I have to make a local OS userid/password for this. or better to do from LDAP server. etc.
[Is there some free LDAP server(may be java based) available ?]

3. or I can just run a servlet and that checks the database for userid/password(hopefully encrypted) and works on behahf of that user.

4. What exactly is form based authentication. Is it common entry point ?

5. please provide me related links.

Thanks for your time

/uma
asdf834@yahoo.com
ASUTech..com 


Apache, Tomcat and SSL

Posted by Jim Suplizio <ji...@marathoninnovations.com>.
  I'm pretty much a newbie to SSL. I have Tomcat running on a PC with Apache
and
  I was wondering what I needed to do to enable SSL.

  thanks,
             Jim



Re: Basic design questions - User Authentication

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Uma Shanker wrote:

> Hello !!!
>
> Please help me to understand these question.
>
> 1. How is user authentication is done in tomcat+Apache server. Is it local OS based or apache has special way to store user's.
>

For Apache, there are lots of choices -- see the Apache documentation.

For Tomcat, it follows the rules for container-managed defined in the Servlet API Specification, which is available at:

    <http://java.sun.com/products/servlet/download.html>

which you will definitely want to download and read.

Tomcat's default implementation of a user database is an XML file named "$TOMCAT_HOME/conf/tomcat-users.xml".  For Tomcat 3.2, there is a commented-out section of the server.xml file that you can use instead to enable accessing a database
through JDBC for defining users and roles.  The configuration is pretty flexible (you can tell Tomcat what tables and columns to look at in what database).

>
> 2. I want to store all the information about the user, in Database(using JDBC) and just userid and password independently. Where I can do this, DO I have to make a local OS userid/password for this. or better to do from LDAP server. etc.
> [Is there some free LDAP server(may be java based) available ?]
>

For JDBC access, see the answer to the previous question.  For any other data source, you would need to create a "Realm" implementation and add it to Tomcat for this purpose.

>
> 3. or I can just run a servlet and that checks the database for userid/password(hopefully encrypted) and works on behahf of that user.
>

Unless you are running over an SSL connection, none of the HTTP security mechanisms protect you from people snooping the network connection and grabbing your password.  Therefore, unless you are running across SSL, I would strongly suggest
*not* trying to use the OS username/password databases for this -- you would be exposing information that lets crackers log in to your system itself.

>
> 4. What exactly is form based authentication. Is it common entry point ?
>

See the servlet API spec.  Note that there are lots of bugs in the container managed security implementation in Tomcat 3.1 -- be sure to use the latest version of Tomcat 3.2 for this.

>
> 5. please provide me related links.
>
> Thanks for your time
>
> /uma
> asdf834@yahoo.com
> ASUTech..com

Craig McClanahan