Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
cd686817
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,发现更多精彩内容 >>
提交
cd686817
编写于
8月 16, 2001
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove protocol version change. Try MD5 first, then crypt() on all clients.
上级
368e87e6
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
20 deletion
+16
-20
src/backend/libpq/auth.c
src/backend/libpq/auth.c
+9
-6
src/backend/libpq/hba.c
src/backend/libpq/hba.c
+3
-10
src/include/libpq/pqcomm.h
src/include/libpq/pqcomm.h
+2
-2
src/interfaces/libpq/libpq-int.h
src/interfaces/libpq/libpq-int.h
+2
-2
未找到文件。
src/backend/libpq/auth.c
浏览文件 @
cd686817
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.5
7 2001/08/15 18:42:14
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.5
8 2001/08/16 04:27:18
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -501,13 +501,16 @@ ClientAuthentication(Port *port)
status
=
recv_and_check_password_packet
(
port
);
break
;
case
uaCrypt
:
sendAuthRequest
(
port
,
AUTH_REQ_CRYPT
);
status
=
recv_and_check_password_packet
(
port
);
break
;
case
uaMD5
:
sendAuthRequest
(
port
,
AUTH_REQ_MD5
);
if
((
status
=
recv_and_check_password_packet
(
port
))
==
STATUS_OK
)
break
;
port
->
auth_method
=
uaCrypt
;
/* Try crypt() for old client */
/* FALL THROUGH */
case
uaCrypt
:
sendAuthRequest
(
port
,
AUTH_REQ_CRYPT
);
status
=
recv_and_check_password_packet
(
port
);
break
;
...
...
src/backend/libpq/hba.c
浏览文件 @
cd686817
...
...
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.6
2 2001/08/15 18:42:15
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.6
3 2001/08/16 04:27:18
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -227,15 +227,8 @@ parse_hba_auth(List *line, ProtocolVersion proto, UserAuth *userauth_p,
else
if
(
strcmp
(
token
,
"reject"
)
==
0
)
*
userauth_p
=
uaReject
;
else
if
(
strcmp
(
token
,
"crypt"
)
==
0
)
{
/* if the client supports it, use MD5 */
if
(
PG_PROTOCOL_MAJOR
(
proto
)
>
2
||
(
PG_PROTOCOL_MAJOR
(
proto
)
==
2
&&
PG_PROTOCOL_MINOR
(
proto
)
>=
1
))
*
userauth_p
=
uaMD5
;
else
*
userauth_p
=
uaCrypt
;
}
/* Try MD5 first; on failure, switch to crypt() */
*
userauth_p
=
uaMD5
;
else
*
error_p
=
true
;
line
=
lnext
(
line
);
...
...
src/include/libpq/pqcomm.h
浏览文件 @
cd686817
...
...
@@ -9,7 +9,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: pqcomm.h,v 1.5
6 2001/08/15 18:42:15
momjian Exp $
* $Id: pqcomm.h,v 1.5
7 2001/08/16 04:27:18
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -90,7 +90,7 @@ typedef union SockAddr
/* The earliest and latest frontend/backend protocol version supported. */
#define PG_PROTOCOL_EARLIEST PG_PROTOCOL(0,0)
#define PG_PROTOCOL_LATEST PG_PROTOCOL(2,
1
)
#define PG_PROTOCOL_LATEST PG_PROTOCOL(2,
0
)
/*
* All packets sent to the postmaster start with the length. This is omitted
...
...
src/interfaces/libpq/libpq-int.h
浏览文件 @
cd686817
...
...
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: libpq-int.h,v 1.3
7 2001/08/15 18:42:16
momjian Exp $
* $Id: libpq-int.h,v 1.3
8 2001/08/16 04:27:18
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -45,7 +45,7 @@
* pqcomm.h describe what the backend knows, not what libpq knows.
*/
#define PG_PROTOCOL_LIBPQ PG_PROTOCOL(2,
1
)
#define PG_PROTOCOL_LIBPQ PG_PROTOCOL(2,
0
)
/*
* POSTGRES backend dependent Constants.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录