zhongliang zhang wrote:
> I checked the url that you supplied to me and expecially the JDBCRealm 
> part,for I have stored the username and password in a relational database.
> So,what I need to do is:
> 1.build the users table and the roles table.
> 2.configure the org.apache.catalina.realm.JDBCRealm
> 3.put the oracle jdbc driver at $tomcat.home/common/lib
> 4.configure the web.xml of my application as following fragment:
> <security-constraint><web-resource-collection><web-resource-name>app</web-resource-name><url-pattern>/*</url-pattern></web-resource-collection><auth-constraint><role-name>poweruser</role-name></auth-constraint></security-constraint><login-config><auth-method>DIGEST</auth-method><realm-name>app</realm-name></login-config>
> (What is the realm-name element mean? The JDBCRealm that I just configured?)
It can be whatever you want it to be.

> then the username and password that client input will be sent to the server 
> encrypted?
Yes.

You haven't yet said what the problem is or what isn't working.

Mark


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to