Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
af5be8bd
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
af5be8bd
编写于
5月 26, 2010
作者:
T
Tom Lane
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
The message style police pay a visit to hba.c.
上级
b1993a61
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
18 addition
and
13 deletion
+18
-13
src/backend/libpq/hba.c
src/backend/libpq/hba.c
+18
-13
未找到文件。
src/backend/libpq/hba.c
浏览文件 @
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
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录