Re: getpeereid() for local ident

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: getpeereid() for local ident
Дата
Msg-id 200302130548.h1D5mDM06314@candle.pha.pa.us
обсуждение исходный текст
Ответ на getpeereid() for local ident  (Alex Cichowski <e12@tfz.net>)
Список pgsql-patches
Seems I already got OpenBSD working in current CVS:

    revision 1.88
    date: 2002/12/03 21:50:44;  author: momjian;  state: Exp;  lines: +29 -2
    Add OpenBSD local indent credentials, from William Ahern.

If you want to try our CVS version or the nightly snapshots on the FTP
server, I think you will find it works fine.


---------------------------------------------------------------------------

Alex Cichowski wrote:
> Regarding the following "openbsd getpeereid(), local ident:" thread on the
> pgsql-patches list, Nov 2002:
>
> Bruce Momjian wrote:
> > Please send over the patch and I will see if I can get it in.  I had
> > meant to add getpeereid() for OpenBSD myself but never go the time.
> > ...
> > William Ahern wrote:
> > > there's a patch for getpeereid() dated Dec 3, 2001. a follow-up post
> > > said that something like it was already in, but "not using
> > > getpeereid". however, openbsd only supports getpeereid(). will this
> > > patch be implemented?
>
> I needed the local ident authentication feature on OpenBSD and it seemed
> simple enough, so I implemented it myself. I have attached my patch, which
> was made for the 7.3.1 source tree. (The patch referenced above seems to
> add a new authentication method rather than extending the current local
> ident support.)
>
> >From the Dec 2001 pgsql-patches thread "Add another AUTHTYPE for
> UNIX-domain connections":
>
> Bruce Momjian wrote:
> > OpenBSD implements only getpeereid().  I have added this to the TODO
> > list.  We already have the other BSD's covered, and Linux.  I am
> > concerned about moving to getpeereid() on the other BSD's because we
> > have working code already for them and I am not sure how new the OS has
> > to be to have getpeereid() support, i.e. is it in FreeBSD 4.4?
>
> I have put the getpeereid() code last in the #elif chain in this patch, so
> getpeereid() will only be used if there is no other alternative.
>
> If you wish to use this patch, please verify that I have added the
> autoconf check for getpeereid() correctly, as I am not very familiar with
> autoconf.
>
> Sincerely,
> Alex

Content-Description: Patch

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

В списке pgsql-patches по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Doc fix for Create Domains
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: targetlist functions part 1 (was [HACKERS] targetlist