]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1223: Make the use of the %m error page to return auth info
authorserassio <>
Mon, 25 Apr 2005 00:25:24 +0000 (00:25 +0000)
committerserassio <>
Mon, 25 Apr 2005 00:25:24 +0000 (00:25 +0000)
messages

This patch extends the helper protocols for Basic and Digest to provide
some basic information in error responses, and makes use of the error
response already included in the NTLM helper protocol, making these
messages available as %m in error pages. Can be used if desired to
indicate why a login failed. The exact messages returned is helper
dependent.

Forward port of 2.5 patch.

helpers/digest_auth/password/digest_pw_auth.c

index 1e42d7da739052b7ad7198c12df22a88c9aaf143..a145583d4eff645b745af2629e24f1c358052b77 100644 (file)
@@ -54,7 +54,7 @@ OutputHHA1(RequestData *requestData)
     requestData->error = 0;
     GetHHA1(requestData);
     if (requestData->error) {    
-       printf("ERR\n");
+       printf("ERR No such user\n");
        return;
     }
     printf("%s\n", requestData->HHA1);