Change authentication error message (patch) - Mailing list pgsql-hackers

From Joshua D. Drake
Subject Change authentication error message (patch)
Date
Msg-id 51BDE19A.9020106@commandprompt.com
Whole thread Raw
Responses Re: Change authentication error message (patch)
List pgsql-hackers
Hello,

Instead of pushing extra info to the logs I decided that we could 
without giving away extra details per policy. I wrote the error message 
in a way that tells the most obvious problems, without admitting to any 
of them. Please see attached:

diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c
index 415b614..a775534 100644
--- a/src/backend/libpq/auth.c
+++ b/src/backend/libpq/auth.c
@@ -270,7 +270,7 @@ auth_failed(Port *port, int status)                        break;                case uaPassword:
            case uaMD5:
 
-                       errstr = gettext_noop("password authentication 
failed for user \"%s\"");
+                       errstr = gettext_noop("password, username or 
password expiry failed for user \"%s\"");                        /* We use it to indicate if a .pgpass password 
failed. */                        errcode_return = ERRCODE_INVALID_PASSWORD;                        break;



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: minor patch submission: CREATE CAST ... AS EXPLICIT
Next
From: Cédric Villemain
Date:
Subject: Re: [PATCH] Remove useless USE_PGXS support in contrib