mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
> This change (I'm sure this will wrap poorly -- sorry):
> http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/include/libpq/pqcomm.h.diff?r1=1.85&r2=1.86 > > modified SockAddr, but no corresponding change was made here > (fe-auth.c:612): > > case AUTH_REQ_KRB5: > #ifdef KRB5 > if (pg_krb5_sendauth(PQerrormsg, conn->sock, &conn->laddr.in, > &conn->raddr.in, > hostname) != STATUS_OK) > > It's not obvious to me what the change ought to be though. This patch should hopefully fix both kerberos 4 and 5. Kurt Roeckx
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.102 2003/06/12 07:36:51 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.103 2003/06/25 01:19:47 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -430,6 +430,13 @@ ClientAuthentication(Port *port)
|
||||
}
|
||||
|
||||
case uaKrb4:
|
||||
/* Kerberos 4 only seems to work with AF_INET. */
|
||||
if (port->raddr.addr.ss_family != AF_INET
|
||||
|| port->laddr.addr.ss_family != AF_INET)
|
||||
{
|
||||
elog(FATAL,
|
||||
"Unsupported protocol for Kerberos 4");
|
||||
}
|
||||
sendAuthRequest(port, AUTH_REQ_KRB4);
|
||||
status = pg_krb4_recvauth(port);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user