Re: backend hba.c prob

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Patrick Welche <prlw1(at)newn(dot)cam(dot)ac(dot)uk>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org, PostgreSQL-ports <pgsql-ports(at)postgresql(dot)org>
Subject: Re: backend hba.c prob
Date: 2001-09-07 20:05:58
Message-ID: 200109072005.f87K5wO20571@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-ports

> On Fri, Sep 07, 2001 at 10:14:27AM -0400, Tom Lane wrote:
> > Patrick Welche <prlw1(at)newn(dot)cam(dot)ac(dot)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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-09-07 20:06:46 Re: backend hba.c prob
Previous Message Tom Lane 2001-09-07 19:15:40 Re: Why "ERROR: dtoi4: integer out of range" on pg_dump

Browse pgsql-ports by date

  From Date Subject
Next Message Bruce Momjian 2001-09-07 20:06:46 Re: backend hba.c prob
Previous Message Patrick Welche 2001-09-07 16:21:26 Re: backend hba.c prob