Not sure digest is still documented. relevant doc is
https://tomcat.apache.org/tomcat-8.5-doc/realm-howto.html#Digested_Passwords
Ex:
<Realm className="org.apache.catalina.realm.DataSourceRealm"
dataSourceName="jdbc/auth"
roleNameCol="role" userCredCol="password" userNameCol="loginid"
userRoleTable="securoles" userTable="users" localDataSource="true">
<CredentialHandler
className="org.apache.catalina.realm.MessageDigestCredentialHandler"
algorithm="md5" />
</Realm>
Le 18 août 2016 02:00, "scaddenp" <[email protected]> a écrit :
> I am trying to migrate from 1.7.2 to 7.0.1 but I am hitting problem trying
> to
> login. In server.xml I have
> <Realm className="org.apache.catalina.realm.DataSourceRealm"
> dataSourceName="jdbc/auth" digest="MD5"
> userTable="datauser" userNameCol="username"
> userCredCol="password"
> userRoleTable="datarole" roleNameCol="rolename"/>
> </Realm>
>
> However, if I digest -a MD5 [a password] in the 7.0.1 server, I get a very
> different (much longer) digest to what I get when I enter exactly the same
> command in the 1.7.2 server. This seems very strange. I cant find any
> documentation about a change to the digestor.
>
> I also get this rather odd message in the startup log:
> WARNING - [SetPropertiesRule]{Server/Service/Engine/Realm/Realm} Setting
> property 'digest' to 'MD5' did not find a matching property.
>
> digest is still listed as attribute of the realm in tomcat documentation.
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/Digest-changed-from-1-7-2-to-7-0-1-tp4679792.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>