Hi.

I'm trying to do a digest authentication using a JDBCRealm with SHA
digest.

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 the 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 my digest configuration 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.

Someone can help me?

iran


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to