> On Wed, 27 Oct 2004 12:43:15 +1000, Ben <[EMAIL PROTECTED]> wrote:
>
>> How do I obtain the Realm context or get the current realm in an
>> ActionForm? I would like to sign in the users after they have signed
>> up using my RegistrationActionForm.

Tue, 26 Oct 2004 20:49:16 -0700, 
Craig McClanahan <[EMAIL PROTECTED]> wrote: 

> I presume you're talking about Tomcat and it's Realm implementation
> for container managed security?
>
> You cannot access it directly (although it wouldn't help you much if
> you could, because it has no APIs for user management) -- it is loaded
> by a class loader visible only to the servlet container.  What you can
> do, however, is establish your own DAO that talks to the same database
> that Tomcat is talking to ... that way, a new user that you add
> through your admin function is immediately available for Tomcat to use
> for authentication.

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

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#DataSourceRealm

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html#DataSourceRealm

-- 
Arnaud Vandyck
http://fosdem.org/
Free and Open Source Developers' European Meeting
February 26-27 2005,
Bruxelles, Belgium

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

Reply via email to