[prev in list] [next in list] [prev in thread] [next in thread]
List: tomcat-user
Subject: Re: Tomcat =?UTF-8?Q?=39=5FSetting=20property=20=27digest=27=20to?= =?UTF-8?Q?=20=27SHA-=32=35=36=27
From: logo <logo () kreuser ! name>
Date: 2019-02-15 9:41:29
Message-ID: df5a40da4def980cc5ed5d8295dcf48f () kreuser-online ! de
[Download RAW message or body]
Hi,
Am 15.02.2019 10:08, schrieb dheeraj joshi:
> >
> > Hi Team,
> >
> >
> >
> > I am getting warning "Setting property 'digest' to 'SHA-256' did not
> > find
> > a matching property" in tomcat9-stderr.log when I use attribute
> > "digest"
> > in realms.
> >
> > Snip from server.xml that i am using when i get error -
> >
> > <Host name="localhost" appBase="webapps" unpackWARs="true"
> > autoDeploy="true">
> >
> > <Realm className="org.apache.catalina.realm.MemoryRealm"
> > digest="SHA-256"
> > />
> >
> >
> >
> > If I remove digest="SHA-256" from line <Realm
> > className="org.apache.catalina.realm.MemoryRealm" digest="SHA-256" />
> > and
> > restart tomcat service , I don't see this warning after it.
> >
That would be expected as it is removed and there is no setter.
> >
> >
> > I did search for similar error reported by other users on internet but
> > couldn't confirm whether I am doing correct configuration. Some people
> > say
> > that digest attribute is removed since Tomcat 8.5 while some suggested
> > me
> > to use CredentialHandler sub element rather than using digest.
> >
> >
well that IS the suggested fix.
https://tomcat.apache.org/tomcat-8.0-doc/config/realm.html#Memory_Based_Realm_-_org.apache.catalina.realm.MemoryRealm
"This attribute is deprecated. Set the algorithm on a nested
CredentialHandler element instead."
You could probably always try the migration guide when you do a major
version upgrade https://tomcat.apache.org/migration.html
Unfortunately each version separate.
Hope this helps.
Peter
> >
> >
> > https://stackoverflow.com/questions/41325893/tomcat-form-based-authentication-datasourcerealm-configuration-errors
> > ,
> > https://mail-archives.apache.org/mod_mbox/tomcat-dev/201511.mbox/raw/%3c564A60FB.70400@gmail.com%3e
> >
> >
> >
> > I couldn't find public documentation from Apache foundation
> > confirming
> > that digest should not be used with Tomcat 9 . When I check docu
> > provided
> > with Tomcat 9 I don't see attribute named digest listed under Memory
> > Based Realm section
> >
> >
> >
> >
> > https://tomcat.apache.org/tomcat-9.0-doc/config/realm.html#Memory_Based_Realm_-_org.apache.catalina.realm.MemoryRealm
> >
> >
> >
> >
> > Can you confirm whether digest attribute can be still used in Tomcat 9
> > in
> > realms, if yes then what should be the correct syntax to use it. If
> > the use
> > of digest is deprecated what should I be using instead?
> >
> >
> >
> > I have been using digest attribute in previous versions of Tomcat in
> > realms and it used to work fine , problem is after Tomcat upgrade from
> > Tomcat 6 to Tomcat 9.
> >
> > Regards
> > Dheeraj Joshi
> >
> > >
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic