mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
From: Jun Kuwamura <juk@rccm.co.jp>
Subject: [HACKERS] auth.c for kerberos. I made pgsql with eBones(international version of Kerberos4). The following modification was needed. And I added read permition for group to srvtab instead of running postmaster as root.
This commit is contained in:
parent
3bc07104ae
commit
678cd5c6b6
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.9 1997/03/12 21:17:48 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.10 1997/03/18 21:46:31 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -438,10 +438,15 @@ be_recvauth(MsgType msgtype_arg, Port *port, char *username, StartupInfo* sp)
|
|||||||
what used to be the only choice, but installation may choose "hba"
|
what used to be the only choice, but installation may choose "hba"
|
||||||
instead.
|
instead.
|
||||||
*/
|
*/
|
||||||
if (msgtype_arg == STARTUP_MSG && useHostBasedAuth)
|
if (msgtype_arg != STARTUP_KRB4_MSG && msgtype_arg != STARTUP_KRB5_MSG) {
|
||||||
msgtype = STARTUP_HBA_MSG;
|
if (msgtype_arg == STARTUP_MSG && useHostBasedAuth)
|
||||||
else
|
msgtype = STARTUP_HBA_MSG;
|
||||||
msgtype = msgtype_arg;
|
else
|
||||||
|
msgtype = STARTUP_UNAUTH_MSG;
|
||||||
|
} else {
|
||||||
|
msgtype = msgtype_arg;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!username) {
|
if (!username) {
|
||||||
(void) sprintf(PQerrormsg,
|
(void) sprintf(PQerrormsg,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user