Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Solaris ident authentication using unix domain sockets

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Garick Hamlin <ghamlin(at)isc(dot)upenn(dot)edu>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, "pgsql-patches(at)postgresql(dot)org" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] Solaris ident authentication using unix domain sockets
Date: 2008-08-22 17:27:58
Message-ID: 200808221727.m7MHRwP09711@momjian.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Garick Hamlin wrote:
> On Thu, Jul 03, 2008 at 02:01:22PM -0400, Tom Lane wrote:
> > Garick Hamlin <ghamlin(at)isc(dot)upenn(dot)edu> writes:
> > >       I have a patch that I have been using to support postgresql's
> > > notion of ident authentication when using unix domain sockets on
> > > Solaris.  This patch basically just adds support for using
> > > getupeercred() on Solaris so unix sockets and ident auth works just
> > > like it does on Linux and elsewhere.
> > 
> > Cool.
> > 
> > > + #if defined(HAVE_GETPEERUCRED)
> > > + #include <ucred.h>
> > > + #endif
> > 
> > But this is not cool.  There might be systems out there that have
> > getpeerucred() but not <ucred.h>, and this coding would cause a compile
> > failure (even if they actually wouldn't be trying to use getpeerucred()
> > because they have some other way to do it).  You need an explicit
> > configure probe for the header file too, I think.
> Ok, I can fix that.

Garick, have you made any progress on an updated patch?

-- 
  Bruce Momjian  <bruce(at)momjian(dot)us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

In response to

pgsql-hackers by date

Next:From: Euler Taveira de OliveiraDate: 2008-08-22 17:28:57
Subject: Re: [HACKERS] [FINALLY] the TODO list has migrated to Wiki
Previous:From: Andrew DunstanDate: 2008-08-22 16:42:42
Subject: Re: [GENERAL] Surprising syntax error

pgsql-patches by date

Next:From: Bruce MomjianDate: 2008-08-22 17:57:48
Subject: Re: pgbench minor fixes
Previous:From: Xiao MengDate: 2008-08-19 09:28:38
Subject: Re: hash index improving v3

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group