The documentation on Tomcat's web site describes how to do this:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html

In my experience, the authentication provided here is very simple where the
only assumption is that there is a username (principal) and that username
has a list of roles defined as strings.

For application development, the user object has many more properties than
just a name and a set of roles.  Therefore, login operations are handled by
your own code.

-Jacob

-----Original Message-----
From: Bill Schneider [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 18, 2003 9:30 AM
To: [EMAIL PROTECTED]
Subject: UserDatabase implementations

Are there plans to have JDBC or JDNI/LDAP implementations of 
org.apache.catalina.UserDatabase?

This would be very useful, as webapps often have to perform actions 
beyond what J2EE APIs provide (get all users in group, get all groups, 
add users/groups/membership).  The advantages would be twofold: you 
would only have to configure your user store once in server.xml; and if 
you change between XML, JDBC or LDAP user stores at the server level, 
you don't have to touch your application-level configuration.

Or am I misreading the whole purpose of J2EE container authentication? 
Should J2EE authentication be reserved for server administration-level 
applications like the manager, and should we use a different system for 
application-level access and authentication altogether?

-- 
Bill Schneider
Software Architect

Vecna Technologies, Inc.
5004 Lehigh Road, Suite B
College Park, MD 20740
[EMAIL PROTECTED]
t: 301-864-7594
f: 301-699-3180



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to