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
af5be8bd
Commit
af5be8bd
authored
May 26, 2010
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The message style police pay a visit to hba.c.
parent
b1993a61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
13 deletions
+18
-13
src/backend/libpq/hba.c
src/backend/libpq/hba.c
+18
-13
No files found.
src/backend/libpq/hba.c
View file @
af5be8bd
...
...
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.20
6 2010/04/21 03:32:5
3 tgl Exp $
* $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.20
7 2010/05/26 16:43:1
3 tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -711,7 +711,7 @@ parse_hba_line(List *line, int line_num, HbaLine *parsedline)
ereport
(
LOG
,
(
errcode
(
ERRCODE_CONFIG_FILE_ERROR
),
errmsg
(
"hostssl not supported on this platform"
),
errhint
(
"
compile with --enable-ssl to use SSL connections
"
),
errhint
(
"
Compile with --enable-ssl to use SSL connections.
"
),
errcontext
(
"line %d of configuration file
\"
%s
\"
"
,
line_num
,
HbaFileName
)));
return
false
;
...
...
@@ -890,8 +890,9 @@ parse_hba_line(List *line, int line_num, HbaLine *parsedline)
{
ereport
(
LOG
,
(
errcode
(
ERRCODE_CONFIG_FILE_ERROR
),
errmsg
(
"IP address and mask do not match in file
\"
%s
\"
line %d"
,
HbaFileName
,
line_num
)));
errmsg
(
"IP address and mask do not match"
),
errcontext
(
"line %d of configuration file
\"
%s
\"
"
,
line_num
,
HbaFileName
)));
return
false
;
}
}
...
...
@@ -944,7 +945,9 @@ parse_hba_line(List *line, int line_num, HbaLine *parsedline)
{
ereport
(
LOG
,
(
errcode
(
ERRCODE_CONFIG_FILE_ERROR
),
errmsg
(
"MD5 authentication is not supported when
\"
db_user_namespace
\"
is enabled"
)));
errmsg
(
"MD5 authentication is not supported when
\"
db_user_namespace
\"
is enabled"
),
errcontext
(
"line %d of configuration file
\"
%s
\"
"
,
line_num
,
HbaFileName
)));
return
false
;
}
parsedline
->
auth_method
=
uaMD5
;
...
...
@@ -1086,7 +1089,7 @@ parse_hba_line(List *line, int line_num, HbaLine *parsedline)
ereport
(
LOG
,
(
errcode
(
ERRCODE_CONFIG_FILE_ERROR
),
errmsg
(
"client certificates can only be checked if a root certificate store is available"
),
err
detail
(
"make sure the root certificate store is present and readable
"
),
err
hint
(
"Make sure the root.crt file is present and readable.
"
),
errcontext
(
"line %d of configuration file
\"
%s
\"
"
,
line_num
,
HbaFileName
)));
return
false
;
...
...
@@ -1245,7 +1248,8 @@ parse_hba_line(List *line, int line_num, HbaLine *parsedline)
{
ereport
(
LOG
,
(
errcode
(
ERRCODE_CONFIG_FILE_ERROR
),
errmsg
(
"unknown authentication option name:
\"
%s
\"
"
,
token
),
errmsg
(
"unrecognized authentication option name:
\"
%s
\"
"
,
token
),
errcontext
(
"line %d of configuration file
\"
%s
\"
"
,
line_num
,
HbaFileName
)));
return
false
;
...
...
@@ -1606,7 +1610,8 @@ parse_ident_usermap(List *line, int line_number, const char *usermap_name,
pg_regerror
(
r
,
&
re
,
errstr
,
sizeof
(
errstr
));
ereport
(
LOG
,
(
errcode
(
ERRCODE_INVALID_REGULAR_EXPRESSION
),
errmsg
(
"invalid regular expression
\"
%s
\"
: %s"
,
file_ident_user
+
1
,
errstr
)));
errmsg
(
"invalid regular expression
\"
%s
\"
: %s"
,
file_ident_user
+
1
,
errstr
)));
pfree
(
wstr
);
*
error_p
=
true
;
...
...
@@ -1628,7 +1633,8 @@ parse_ident_usermap(List *line, int line_number, const char *usermap_name,
pg_regerror
(
r
,
&
re
,
errstr
,
sizeof
(
errstr
));
ereport
(
LOG
,
(
errcode
(
ERRCODE_INVALID_REGULAR_EXPRESSION
),
errmsg
(
"regular expression match for
\"
%s
\"
failed: %s"
,
file_ident_user
+
1
,
errstr
)));
errmsg
(
"regular expression match for
\"
%s
\"
failed: %s"
,
file_ident_user
+
1
,
errstr
)));
*
error_p
=
true
;
}
...
...
@@ -1773,9 +1779,8 @@ check_usermap(const char *usermap_name,
if
(
!
found_entry
&&
!
error
)
{
ereport
(
LOG
,
(
errmsg
(
"no match in usermap for user
\"
%s
\"
authenticated as
\"
%s
\"
"
,
pg_role
,
auth_user
),
errcontext
(
"usermap
\"
%s
\"
"
,
usermap_name
)));
(
errmsg
(
"no match in usermap
\"
%s
\"
for user
\"
%s
\"
authenticated as
\"
%s
\"
"
,
usermap_name
,
pg_role
,
auth_user
)));
}
return
found_entry
?
STATUS_OK
:
STATUS_ERROR
;
}
...
...
@@ -1798,7 +1803,7 @@ load_ident(void)
/* not fatal ... we just won't do any special ident maps */
ereport
(
LOG
,
(
errcode_for_file_access
(),
errmsg
(
"could not open
Ident
usermap file
\"
%s
\"
: %m"
,
errmsg
(
"could not open usermap file
\"
%s
\"
: %m"
,
IdentFileName
)));
}
else
...
...
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