> On Fri, Sep 07, 2001 at 10:14:27AM -0400, Tom Lane wrote:
> > Patrick Welche <prlw1@newn.cam.ac.uk> writes:
> > > hba.c: In function `ident_unix':
> > > hba.c:923: sizeof applied to an incomplete type
> >
> > > Now, the problem is sizeof(Cred), typedef struct cmsgcred Cred, and I don't
> > > have a cmsgcred anywhere!
> >
> > That's new code and we expected some portability issues with it :-(
> >
> > What platform are you on exactly?
>
> NetBSD-1.5X/i386 Remeber me? :)
>
> > What changes are needed to make the
> > code work there, and how might we #ifdef or autoconfigure a test for it?
>
> I need to look at it some more for that..
OK, I have modified the CVS CREDS code to work on FreeBSD and BSD/OS,
and hopefully NetBSD. I talked to Jason at Linuxworld and I think this
code should work. Please test the CVS version and let me know. OpenBSD
doesn't support creds as far as I can tell.
To test, define 'ident sameuser' for 'local' in pg_hba.conf and restart
postmaster. Then connect as local user.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026