Обсуждение: Re: [PATCHES] Allow IDENT authentication on local connections (Linux only)
> On Thu, 2 Aug 2001, Bruce Momjian wrote: > > > Yes! That was it the Solaris patch I remember, SCM_CREDENTIALS. > > Can you provide a pointer to this patch? I just grepped Solaris includes > in vain for SCM_CRED. > > The keyword "SCM_CREDENTIALS" is actually used by Linux, whereas FreeBSD > uses "SCM_CREDS", so perhaps you are mistaken and the patch was for either > Linux or BSD instead of Solaris? Found it: http://fts.postgresql.org/db/mw/msg.html?mid=115140 See the entire thread for the comments about it. He says Linux and BSD support it, and that it was invented by Solaris. I see SCM_CREDS on BSD/OS. I wonder if this is what we should use instead of the PEER define we just added? -- 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, Pennsylvania19026
Bruce Momjian <pgman@candle.pha.pa.us> writes: > Found it: > http://fts.postgresql.org/db/mw/msg.html?mid=115140 > See the entire thread for the comments about it. That patch uses SO_PEERCRED, and is the direct ancestor of the present Debian patches. I haven't seen any code go by that uses the SCM_CREDS message directly. regards, tom lane
Re: Re: [PATCHES] Allow IDENT authentication on local connections (Linux only)
От
Bruce Momjian
Дата:
> Bruce Momjian <pgman@candle.pha.pa.us> writes: > > Found it: > > http://fts.postgresql.org/db/mw/msg.html?mid=115140 > > See the entire thread for the comments about it. > > That patch uses SO_PEERCRED, and is the direct ancestor of the > present Debian patches. I haven't seen any code go by that uses > the SCM_CREDS message directly. Bummer. -- 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, Pennsylvania19026