Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
c6d3158f
Commit
c6d3158f
authored
Aug 04, 2004
by
Dennis Bjorklund
Browse files
Options
Browse Files
Download
Email 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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
src/backend/libpq/auth.c
src/backend/libpq/auth.c
+13
-11
No files found.
src/backend/libpq/auth.c
View file @
c6d3158f
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.11
4 2003/12/20 18:24:52 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.11
5 2004/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 */
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment