Change
<login-config>
<auth-method>DIGEST</auth-method>
</login-config>
to
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
-----Original Message-----
From: Iran Marcius [mailto:iran@;isic.com.br]
Sent: Thursday, November 07, 2002 1:29 PM
To: [EMAIL PROTECTED]
Subject: Digest authentication with JDBCRealm: doesn't seems to work
Hi.
I'm trying to use digest authentication with JDBCRealm and SHA
algorithm, but it doesn't seems to work.
Here is my context:
<Context docBase="permission" path="/permission" reloadable="true"
privileged="true">
<ResourceLink name="jdbc/global" global="jdbc/global"
type="javax.sql.DataSource"/>
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="org.postgresql.Driver" digest="SHA"
connectionURL="jdbc:postgresql://testhost/global"
connectionName="global" connectionPassword="password"
userTable="users" userRoleTable="user_role"
userNameCol="username" userCredCol="password"
roleNameCol="rolename"/>
</Context>
And here is my relevant lines in web.xml:
<login-config>
<auth-method>DIGEST</auth-method>
</login-config>
When I use BASIC method, as a lot of people wrote before, everything
works fine, but with DIGEST method I can't authenticate.
I tried to turn off "digest" parameter in server.xml, but didn't work. I
tried so set a plain password in my user table. Didn't work too. So,
I've tried a lot of combinations without success.
Is there someone who did it before?
iran
--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee. It may contain information which is
covered by legal, professional or other privilege. If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission. If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>