You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Veniamin Fichin <3c...@mail.ru> on 2003/01/14 13:30:36 UTC

DataSourceRealm does not exists?

Hi list!

I've faces the strange problem that I don't understand.

I need to configure some authentication at some part of our site, so I 
chose FORM based authentication through DataSourceRealm described in 
"Realm Configuration HOW-TO".
First, I've mentioned that explanation about DataSourceRealm and 
attribute list are strangely similar to JDBCRealm one (is it just a 
copy&paste?) -- that is, in some places there is "JDBCRealm" where 
"DataSourceRealm" should be.
Second, attribute list for DSR has no differences with JDBCR -- how 
should I declare jndi name for a data source? But it the "Example" 
subsection below there is dataSourceName attribute, and className is 
"org.apache.catalina.realm.DataSourceRealm" instead of 
"org.apache.catalina.realm.JDBCRealm" listed in attrubute list above. Is 
it documentation error or not?
Third, and most strangest, is that there is _no_ 
org.apache.catalina.realm.DataSourceRealm class in my Tomcat 
distribution! I looked in $TOMCAT_HOME/server/catalina.jar and didn't 
find this class.

My Tomcat is 4.1.16, OS is Win2k.
I've searched marc.theaimsgroup.com and Google, and didn't find any 
message related to my question.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: DataSourceRealm does not exists?

Posted by Veniamin Fichin <3c...@mail.ru>.
Sorry for the stupid post, found my fault... DataSourceRealm is in 
4.1.18, shame on me...
I have another question now. Servlet 2.3 spec, subsection J2EE12.5.3.1 
Login Form Notes, says that for FORM based authentication action form 
attribute should always be "j_security_check".
I think I set constraints right, because I see login page when I request 
any page in closed area. But after submitting the form my URL becomes 
/context/j_security_check, and nothing happens. Should I provide any 
servlet mapping to make it work?

--= [ cut ] =--
<form action="j_security_check" method="POST">
  <input type="text" name="j_username" value=""><br>
  <input type="text" name="j_password" value=""><br>
  <input type="submit">
</form>
--= [ / cut ] =--

Veniamin Fichin wrote:

> Hi list!
> 
> I've faces the strange problem that I don't understand.

--= [ cut ] =--


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>