Deal with cases where getpeereid _and_ another creditial method is
supported.
This commit is contained in:
parent
f988edb4e1
commit
6f0ebe3fba
|
@ -8,7 +8,7 @@
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.91 2002/09/04 23:31:34 tgl Exp $
|
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.92 2002/12/03 22:09:19 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -430,7 +430,9 @@ ClientAuthentication(Port *port)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case uaIdent:
|
case uaIdent:
|
||||||
#if !defined(SO_PEERCRED) && (defined(HAVE_STRUCT_CMSGCRED) || defined(HAVE_STRUCT_FCRED) || (defined(HAVE_STRUCT_SOCKCRED) && defined(LOCAL_CREDS)))
|
#if defined(HAVE_STRUCT_CMSGCRED) || defined(HAVE_STRUCT_FCRED) || \
|
||||||
|
(defined(HAVE_STRUCT_SOCKCRED) && defined(LOCAL_CREDS)) && \
|
||||||
|
!defined(HAVE_GETPEEREID) && !defined(SO_PEERCRED)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we are doing ident on unix-domain sockets, use SCM_CREDS
|
* If we are doing ident on unix-domain sockets, use SCM_CREDS
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
|
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.71 2002/09/04 20:31:46 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.72 2002/12/03 22:09:20 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -449,7 +449,9 @@ pg_krb5_sendauth(char *PQerrormsg, int sock,
|
||||||
static int
|
static int
|
||||||
pg_local_sendauth(char *PQerrormsg, PGconn *conn)
|
pg_local_sendauth(char *PQerrormsg, PGconn *conn)
|
||||||
{
|
{
|
||||||
#if defined(HAVE_STRUCT_CMSGCRED) || defined(HAVE_STRUCT_FCRED) || (defined(HAVE_STRUCT_SOCKCRED) && defined(LOCAL_CREDS))
|
#if defined(HAVE_STRUCT_CMSGCRED) || defined(HAVE_STRUCT_FCRED) || \
|
||||||
|
(defined(HAVE_STRUCT_SOCKCRED) && defined(LOCAL_CREDS)) && \
|
||||||
|
!defined(HAVE_GETPEEREID) && !defined(SO_PEERCRED)
|
||||||
char buf;
|
char buf;
|
||||||
struct iovec iov;
|
struct iovec iov;
|
||||||
struct msghdr msg;
|
struct msghdr msg;
|
||||||
|
|
Loading…
Reference in New Issue