Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit678cd5c

Browse files
committed
From: Jun Kuwamura <juk@rccm.co.jp>
Subject: [HACKERS] auth.c for kerberos. I made pgsql with eBones(international version of Kerberos4). Thefollowing modification was needed. And I added read permition forgroup to srvtab instead of running postmaster as root.
1 parent3bc0710 commit678cd5c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

‎src/backend/libpq/auth.c

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.9 1997/03/12 21:17:48 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.10 1997/03/18 21:46:31 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -438,10 +438,15 @@ be_recvauth(MsgType msgtype_arg, Port *port, char *username, StartupInfo* sp)
438438
what used to be the only choice, but installation may choose "hba"
439439
instead.
440440
*/
441-
if (msgtype_arg==STARTUP_MSG&&useHostBasedAuth)
442-
msgtype=STARTUP_HBA_MSG;
443-
else
444-
msgtype=msgtype_arg;
441+
if (msgtype_arg!=STARTUP_KRB4_MSG&&msgtype_arg!=STARTUP_KRB5_MSG) {
442+
if (msgtype_arg==STARTUP_MSG&&useHostBasedAuth)
443+
msgtype=STARTUP_HBA_MSG;
444+
else
445+
msgtype=STARTUP_UNAUTH_MSG;
446+
}else {
447+
msgtype=msgtype_arg;
448+
}
449+
445450

446451
if (!username) {
447452
(void)sprintf(PQerrormsg,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp