Re: CredentialHandler not working for MD5

2023-11-20 Thread Christopher Schultz
Mark, On 11/18/23 07:52, Mark Thomas wrote: On 17/11/2023 19:36, Christopher Schultz wrote: Is there any reason why SHA-256 is the default? MD5 is the historical default / only implementation for HTTP DIGEST. RFC 7616 (2015) Chrome will choose SHA-256 if presented with a choice of SHA-256 a

Re: CredentialHandler not working for MD5

2023-11-18 Thread Mark Thomas
On 17/11/2023 19:36, Christopher Schultz wrote: Is there any reason why SHA-256 is the default? MD5 is the historical default / only implementation for HTTP DIGEST. RFC 7616 (2015) Chrome will choose SHA-256 if presented with a choice of SHA-256 and MD5. Mark ---

Re: CredentialHandler not working for MD5

2023-11-17 Thread Christopher Schultz
Mark, On 11/17/23 03:55, Mark Thomas wrote: On 16/11/2023 18:06, Peter Otto wrote:    1.  Configure BASIC auth with clear-text passwords in the Realm and get that working.    2.  Switch to DIGEST auth with clear-text passwords in the Realm and get that working.    3.  Then configure DIGEST a

Re: CredentialHandler not working for MD5

2023-11-17 Thread Peter Otto
Ok thanks. Got it is now working. This step was missing. We didn’t have to do this before. No mention of having to edit Digest inside context.xml here https://tomcat.apache.org/tomcat-9.0-doc/realm-howto.html Tried SHA-256, couldn’t get it to work. But MD5 does. Thanks again. This e-mail a

Re: CredentialHandler not working for MD5

2023-11-17 Thread Christopher Schultz
Mark, On 11/17/23 03:55, Mark Thomas wrote: On 16/11/2023 18:06, Peter Otto wrote:    1.  Configure BASIC auth with clear-text passwords in the Realm and get that working.    2.  Switch to DIGEST auth with clear-text passwords in the Realm and get that working.    3.  Then configure DIGEST a

Re: CredentialHandler not working for MD5

2023-11-17 Thread Mark Thomas
On 16/11/2023 18:06, Peter Otto wrote: 1. Configure BASIC auth with clear-text passwords in the Realm and get that working. 2. Switch to DIGEST auth with clear-text passwords in the Realm and get that working. 3. Then configure DIGEST auth and digested passwords in the Realm. Hi Chris

Re: CredentialHandler not working for MD5

2023-11-16 Thread Christopher Schultz
Peter, On 11/16/23 13:06, Peter Otto wrote: 1. Configure BASIC auth with clear-text passwords in the Realm and get that working. 2. Switch to DIGEST auth with clear-text passwords in the Realm and get that working. 3. Then configure DIGEST auth and digested passwords in the Realm. Hi

Re: CredentialHandler not working for MD5

2023-11-16 Thread Peter Otto
1. Configure BASIC auth with clear-text passwords in the Realm and get that working. 2. Switch to DIGEST auth with clear-text passwords in the Realm and get that working. 3. Then configure DIGEST auth and digested passwords in the Realm. Hi Chris, Step 1 & 2 work Step 3 will not work with

Re: CredentialHandler not working for MD5

2023-11-14 Thread Mark Thomas
on the popup box. From: Peter Otto Date: Monday, November 13, 2023 at 11:05 AM To: Tomcat Users List Subject: Re: CredentialHandler not working for MD5 Chris, Running the debugger, I found out the DigestAuthenticator wants to use SHA-256. 8 months ago there was a change for RFC 7616. https://u

Re: CredentialHandler not working for MD5

2023-11-13 Thread Peter Otto
digest equals the clientDigest, then it works. The way I understand it, the clientDigest comes from the client entering in the username/pwd on the popup box. From: Peter Otto Date: Monday, November 13, 2023 at 11:05 AM To: Tomcat Users List Subject: Re: CredentialHandler not working for MD5

Re: CredentialHandler not working for MD5

2023-11-13 Thread Peter Otto
: users@tomcat.apache.org Subject: Re: CredentialHandler not working for MD5 Peter, On 11/10/23 16:30, Peter Otto wrote: > With 9.0.82, and the latest version 10, I get the same problem. > So I assume it stopped working since 9.0.74 all the way up to 9.0.82 > > Removing the Realm Lock

Re: CredentialHandler not working for MD5

2023-11-10 Thread Christopher Schultz
t see anything in the changelog that seems like it would be related. Thing I suspect are related were in an earlier release. Are you able to run under a debugger, and are you comfortable doing that? It's pretty easy to set a breakpoint in the Realm and/or CredentialHandler to see what's bein

Re: CredentialHandler not working for MD5

2023-11-10 Thread Peter Otto
@tomcat.apache.org Subject: Re: CredentialHandler not working for MD5 Peter, On 11/10/23 13:27, Peter Otto wrote: > Logging into manager using MD5 works in 9.0.73 but now fails in > 9.0.74->current > Steps to reproduce. > > Step 1. Run C:\tomcat\bin> .\digest

Re: CredentialHandler not working for MD5

2023-11-10 Thread Christopher Schultz
c900e0 Step 2. Use the digest # and place it in tomcat-users.xml Step 3. Edit server.xml and add the CredentialHandler to use MD5 Step 4. Edit the web.xml in manager to say DIGEST UserDatabase Step 5 start tomcat and try to access the manager. On WIndows 2019 server/

CredentialHandler not working for MD5

2023-11-10 Thread Peter Otto
tomcat-users.xml Step 3. Edit server.xml and add the CredentialHandler to use MD5 Step 4. Edit the web.xml in manager to say DIGEST UserDatabase Step 5 start tomcat and try to access the manager. On WIndows 2019 server/Chrome/OpenJDK11 type tomcat for the user and nobue

RE: CredentialHandler tomcat 7

2023-10-23 Thread Усманов Азат Анварович
ification and for all the help От: Christopher Schultz Отправлено: 23 октября 2023 г. 19:24 Кому: users@tomcat.apache.org Тема: Re: CredentialHandler tomcat 7 Chuck, On 10/22/23 13:55, Chuck Caldarale wrote: >> On Oct 22, 2023, at 10:02, Усманов Азат Анварович wrote:

Re: CredentialHandler tomcat 7

2023-10-23 Thread Christopher Schultz
Chuck, On 10/22/23 13:55, Chuck Caldarale wrote: On Oct 22, 2023, at 10:02, Усманов Азат Анварович wrote: Hi everyone! I'm trying to use CredentialHandler with tomcat to increase security since our db at $work still has pwd stored as md5 hashes. Some of our servers still use tomcat

Re: CredentialHandler  tomcat 7

2023-10-22 Thread Chuck Caldarale
> On Oct 22, 2023, at 10:02, Усманов Азат Анварович wrote: > > Hi everyone! I'm trying to use CredentialHandler with tomcat to increase > security since our db at $work still has pwd stored as md5 hashes. Some of > our servers still use tomcat 7.092/ I was looking at

CredentialHandler  tomcat 7

2023-10-22 Thread Усманов Азат Анварович
Hi everyone! I'm trying to use CredentialHandler with tomcat to increase security since our db at $work still has pwd stored as md5 hashes. Some of our servers still use tomcat 7.092/ I was looking at this presentation by Christopher Shultz http://people.apache.org/~schultz/ApacheCon

Re: Why does LockOutRealm not support CredentialHandler?

2022-11-18 Thread Christopher Schultz
idn't work, I was only able to login with providing the DIGEST of tomcat-users.xml as password to the browser, which actually made it a plain-text password at the server. The following fit as well to what I recognized: https://stackoverflow.com/questions/64733766/how-to-get-tomcat-credentia

Re: Why does LockOutRealm not support CredentialHandler?

2022-11-17 Thread Rémy Maucherat
On Thu, Nov 17, 2022 at 11:22 AM Mark Thomas wrote: > > On 17/11/2022 10:07, Rémy Maucherat wrote: > > On Wed, Nov 16, 2022 at 6:14 PM Christopher Schultz > > > > >> I guess we could add a configuration option to CombinedRealm: > >> > >> inheritCredentialHandler="first|last|numeric-position|

Re: Why does LockOutRealm not support CredentialHandler?

2022-11-17 Thread Mark Thomas
On 17/11/2022 10:07, Rémy Maucherat wrote: On Wed, Nov 16, 2022 at 6:14 PM Christopher Schultz I guess we could add a configuration option to CombinedRealm: inheritCredentialHandler="first|last|numeric-position|false/off/no" ? Then you'd only have to declare it once and then you have

Re: Why does LockOutRealm not support CredentialHandler?

2022-11-17 Thread Rémy Maucherat
; >> mean the stuff you drop into an authentication database. It will make > >> things a lot easier to understand for all parties involved. > >> > >>>> > >>>> ... > >>>> > >>> > >>> Adding that didn't

Re: Why does LockOutRealm not support CredentialHandler?

2022-11-16 Thread Christopher Schultz
ser, which actually made it a plain-text password at the server. The following fit as well to what I recognized: https://stackoverflow.com/questions/64733766/how-to-get-tomcat-credentialhandler-inside-java-when-nested-in-lockoutrealm BUT: I gave things an additional try now and especially after the di

Re: Why does LockOutRealm not support CredentialHandler?

2022-11-16 Thread Thorsten Schöning
Guten Tag Christopher Schultz, am Mittwoch, 16. November 2022 um 13:35 schrieben Sie: > I really don't know why you are seeing that warning. You aren't > explicitly-setting a CredentialHandler on your LockOutRealm and > that's the only time this warning should be shown

Re: Why does LockOutRealm not support CredentialHandler?

2022-11-16 Thread Rémy Maucherat
on database. It will make > things a lot easier to understand for all parties involved. > > >> > >> ... > >> > > > > Adding that didn't work, I was only able to login with providing the > > DIGEST of tomcat-users.xml as password to the browser,

Re: Why does LockOutRealm not support CredentialHandler?

2022-11-16 Thread Christopher Schultz
ognized: https://stackoverflow.com/questions/64733766/how-to-get-tomcat-credentialhandler-inside-java-when-nested-in-lockoutrealm BUT: I gave things an additional try now and especially after the discussion about auth-method BASIC vs. DIGEST and login DOES work now! So both the UserDatabase realm

Re: Why does LockOutRealm not support CredentialHandler?

2022-11-16 Thread Christopher Schultz
Thorsten, On 11/16/22 02:28, Thorsten Schöning wrote: Guten Tag Christopher Schultz, am Mittwoch, 16. November 2022 um 04:00 schrieben Sie: Thorsten, what makes you say "it doesn't work" and "LockoutRealm ignores any credential handler"? When you say "it doesn't work"... what DOES it do? IGN

Re: Why does LockOutRealm not support CredentialHandler?

2022-11-16 Thread Thorsten Schöning
to the browser. > > ... > Adding that didn't work, I was only able to login with providing the DIGEST of tomcat-users.xml as password to the browser, which actually made it a plain-text password at the server. The following fit as well to what I recognized: https://stackoverflow.com/q

Re: Why does LockOutRealm not support CredentialHandler?

2022-11-15 Thread Thorsten Schöning
Guten Tag Christopher Schultz, am Mittwoch, 16. November 2022 um 04:00 schrieben Sie: > Thorsten, what makes you say "it doesn't work" and "LockoutRealm > ignores any credential handler"? When you say "it doesn't work"... > what DOES it do? IGNORES because it logs a corresponding warning on expli

Re: Why does LockOutRealm not support CredentialHandler?

2022-11-15 Thread Christopher Schultz
lm itself anymore as well. Forget about "digest". It's dead and for good reason. The only way to fulfill both requirements is to implement a custom realm. That should not be true. Nov 14, 2022 9:03:48 PM org.apache.catalina.realm.CombinedRealm setCredentialHandler WARNUNG

Re: Why does LockOutRealm not support CredentialHandler?

2022-11-15 Thread Christopher Schultz
, I'm unable to set any "digest" attribute on the realm itself anymore as well. The only way to fulfill both requirements is to implement a custom realm. Nov 14, 2022 9:03:48 PM org.apache.catalina.realm.CombinedRealm setCredentialHandler WARNUNG: A CredentialHandler was set o

Re: Why does LockOutRealm not support CredentialHandler?

2022-11-15 Thread Thorsten Schöning
Guten Tag Rémy Maucherat, am Dienstag, 15. November 2022 um 12:59 schrieben Sie: > Maybe NestedCredentialHandler could be used to construct a > CredentialHandler that could be useful to the application, but this > needs more thought. That wouldn't change anything, as that ha

Re: Why does LockOutRealm not support CredentialHandler?

2022-11-15 Thread Rémy Maucherat
gt; > > > > But that doesn't work, because LockOutRealm ignores any credential > handler. Additionally, with my used Tomcat 10, I'm unable to set any > "digest" attribute on the realm itself anymore as well. The only way > to fulfill both requireme

Why does LockOutRealm not support CredentialHandler?

2022-11-15 Thread Thorsten Schöning
ny "digest" attribute on the realm itself anymore as well. The only way to fulfill both requirements is to implement a custom realm. > Nov 14, 2022 9:03:48 PM org.apache.catalina.realm.CombinedRealm > setCredentialHandler > WARNUNG: A CredentialHandler was set on an instance of

Re: CredentialHandler

2016-04-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stefan, On 4/27/16 11:16 AM, Stefan Frei wrote: > Tomcat 8.0.33 > > i need some help with credentialhandler in datasourceRealm. > > I wan t to achieve a encrypted password, if possible with salt. > > Encryption SHA-512 or

CredentialHandler

2016-04-27 Thread Stefan Frei
Hello Tomcat 8.0.33 java 8 debian i need some help with credentialhandler in datasourceRealm. I wan t to achieve a encrypted password, if possible with salt. Encryption SHA-512 or similar. is there a example somewhere how to modify the realm, i couldnt find anything in the docs. Realm looks

Re: Need help with using CredentialHandler

2015-08-24 Thread Christopher Schultz
are your requirements? You may not have to manually-configure a CredentiaHandler. > 1. Firstly how will a CredentialHandler declaration look like ? > Can someone provide a sample declaration of the > NestedCredentialHandler with the algorithm attribute declared. I > need to know since the Diges

Need help with using CredentialHandler

2015-08-23 Thread Sreyan Chakravarty
I need to use Container Managed Security and Authentication in my latest project. And I have a couple of queries regarding how to configure a Credential Handler. 1. Firstly how will a CredentialHandler declaration look like ? Can someone provide a sample declaration of the