Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
c6d3158f
Commit
c6d3158f
authored
20 years ago
by
Dennis Bjorklund
Browse files
Options
Downloads
Patches
Plain Diff
Add some strings for translation and remove some cut'n'paste
that makes it impossible to translate to other languages.
parent
020ec162
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/libpq/auth.c
+13
-11
13 additions, 11 deletions
src/backend/libpq/auth.c
with
13 additions
and
11 deletions
src/backend/libpq/auth.c
+
13
−
11
View file @
c6d3158f
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.11
4
200
3/12/20 18:24:52 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.11
5
200
4/08/04 16:05:13 dennis
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -345,7 +345,7 @@ pg_krb5_recvauth(Port *port)
...
@@ -345,7 +345,7 @@ pg_krb5_recvauth(Port *port)
static
void
static
void
auth_failed
(
Port
*
port
,
int
status
)
auth_failed
(
Port
*
port
,
int
status
)
{
{
const
char
*
authmethod
=
"Unknown auth method:"
;
const
char
*
errstr
;
/*
/*
* If we failed due to EOF from client, just quit; there's no point in
* If we failed due to EOF from client, just quit; there's no point in
...
@@ -363,36 +363,38 @@ auth_failed(Port *port, int status)
...
@@ -363,36 +363,38 @@ auth_failed(Port *port, int status)
switch
(
port
->
auth_method
)
switch
(
port
->
auth_method
)
{
{
case
uaReject
:
case
uaReject
:
authmethod
=
"Rejected host:"
;
errstr
=
gettext
(
"Rejected host: authentication failed for user
\"
%s
\"
"
)
;
break
;
break
;
case
uaKrb4
:
case
uaKrb4
:
authmethod
=
"Kerberos4"
;
errstr
=
gettext
(
"Kerberos4 authentication failed for user
\"
%s
\"
"
)
;
break
;
break
;
case
uaKrb5
:
case
uaKrb5
:
authmethod
=
"Kerberos5"
;
errstr
=
gettext
(
"Kerberos5 authentication failed for user
\"
%s
\"
"
)
;
break
;
break
;
case
uaTrust
:
case
uaTrust
:
authmethod
=
"Trusted"
;
errstr
=
gettext
(
"Trusted authentication failed for user
\"
%s
\"
"
)
;
break
;
break
;
case
uaIdent
:
case
uaIdent
:
authmethod
=
"IDENT"
;
errstr
=
gettext
(
"IDENT authentication failed for user
\"
%s
\"
"
)
;
break
;
break
;
case
uaMD5
:
case
uaMD5
:
case
uaCrypt
:
case
uaCrypt
:
case
uaPassword
:
case
uaPassword
:
authmethod
=
"Password"
;
errstr
=
gettext
(
"Password authentication failed for user
\"
%s
\"
"
)
;
break
;
break
;
#ifdef USE_PAM
#ifdef USE_PAM
case
uaPAM
:
case
uaPAM
:
authmethod
=
"PAM"
;
errstr
=
gettext
(
"PAM authentication failed for user
\"
%s
\"
"
)
;
break
;
break
;
#endif
/* USE_PAM */
#endif
/* USE_PAM */
default
:
errstr
=
gettext
(
"Unknown auth method: authentication failed for user
\"
%s
\"
"
);
break
;
}
}
ereport
(
FATAL
,
ereport
(
FATAL
,
(
errcode
(
ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION
),
(
errcode
(
ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION
),
errmsg
(
"%s authentication failed for user
\"
%s
\"
"
,
errmsg
(
errstr
,
port
->
user_name
)));
authmethod
,
port
->
user_name
)));
/* doesn't return */
/* doesn't return */
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment