Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
54bf5da7
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,发现更多精彩内容 >>
提交
54bf5da7
编写于
7月 21, 2001
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Source formatting cleanup.
上级
d4042234
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
21 deletion
+11
-21
src/backend/libpq/auth.c
src/backend/libpq/auth.c
+11
-21
未找到文件。
src/backend/libpq/auth.c
浏览文件 @
54bf5da7
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.5
3 2001/06/20 18:07:55 petere
Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.5
4 2001/07/21 00:29:56 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -122,7 +122,6 @@ pg_krb4_recvauth(Port *port)
return
STATUS_ERROR
;
}
#endif
/* KRB4 */
...
...
@@ -304,7 +303,6 @@ pg_krb5_recvauth(Port *port)
return
STATUS_ERROR
;
}
#endif
/* KRB5 */
...
...
@@ -399,7 +397,6 @@ recv_and_check_passwordv0(Port *port)
* Note that many sorts of failure report additional information in the
* postmaster log, which we hope is only readable by good guys.
*/
static
void
auth_failed
(
Port
*
port
)
{
...
...
@@ -435,7 +432,6 @@ auth_failed(Port *port)
}
/*
* Client authentication starts here. If there is an error, this
* function does not return and the backend process is terminated.
...
...
@@ -451,7 +447,6 @@ ClientAuthentication(Port *port)
* hba config file, not with the request. hba.c should have dropped
* an error message into the postmaster logfile if it failed.
*/
if
(
hba_getauthmethod
(
port
)
!=
STATUS_OK
)
elog
(
FATAL
,
"Missing or erroneous pg_hba.conf file, see postmaster log for details"
);
...
...
@@ -464,26 +459,24 @@ ClientAuthentication(Port *port)
}
/* Handle new style authentication. */
switch
(
port
->
auth_method
)
{
case
uaReject
:
/*
* This could have come from an explicit "reject" entry in
* pg_hba.conf, but more likely it means there was no
* matching entry. Take pity on the poor user and issue a
* helpful error message. NOTE: this is not a security
* breach, because all the info reported here is known at
* the frontend and must be assumed known to bad guys.
* We're merely helping out the less clueful good guys.
*/
/*
* This could have come from an explicit "reject" entry in
* pg_hba.conf, but more likely it means there was no
* matching entry. Take pity on the poor user and issue a
* helpful error message. NOTE: this is not a security
* breach, because all the info reported here is known at
* the frontend and must be assumed known to bad guys.
* We're merely helping out the less clueful good guys.
*/
{
const
char
*
hostinfo
=
"localhost"
;
if
(
port
->
raddr
.
sa
.
sa_family
==
AF_INET
)
hostinfo
=
inet_ntoa
(
port
->
raddr
.
in
.
sin_addr
);
elog
(
FATAL
,
elog
(
FATAL
,
"No pg_hba.conf entry for host %s, user %s, database %s"
,
hostinfo
,
port
->
user
,
port
->
database
);
return
;
...
...
@@ -530,7 +523,6 @@ ClientAuthentication(Port *port)
/*
* Send an authentication request packet to the frontend.
*/
static
void
sendAuthRequest
(
Port
*
port
,
AuthRequest
areq
)
{
...
...
@@ -556,7 +548,6 @@ sendAuthRequest(Port *port, AuthRequest areq)
/*
* Called when we have received the password packet.
*/
static
int
recv_and_check_password_packet
(
Port
*
port
)
{
...
...
@@ -638,7 +629,6 @@ old_be_recvauth(Port *port)
* allow the connection anyway, disallow it anyway, or use the result)
* depending on what authentication we really want to use.
*/
static
int
map_old_to_new
(
Port
*
port
,
UserAuth
old
,
int
status
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录