Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Patches > Re: [HACKERS] S...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 3854 of 4249
Post > Topic >>

Re: [HACKERS] Solaris ident authentication using unix domain

by ghamlin@[EMAIL PROTECTED] (Garick Hamlin) Jul 3, 2008 at 02:55 PM

On Thu, Jul 03, 2008 at 02:01:22PM -0400, Tom Lane wrote:
> Garick Hamlin <ghamlin@[EMAIL PROTECTED]
> writes:
> >       I have a patch that I have been using to sup****t postgresql's
> > notion of ident authentication when using unix domain sockets on
> > Solaris.  This patch basically just adds sup****t 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.
> 
> Also, what is the rationale for putting this before the
> HAVE_STRUCT_CMSGCRED case instead of after?  Again, that seems like it
> could cause unexpected behavioral changes on platforms that work fine
> now (consider possibility that getpeerucred is there but broken).
Good Point, It should be the other way.
> 
>                         regards, tom lane

Thanks,

Garick

-- 
Sent via pgsql-patches mailing list (pgsql-patches@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches
 




 4 Posts in Topic:
Solaris ident authentication using unix domain sockets
ghamlin@[EMAIL PROTECTED]  2008-07-03 13:36:28 
Re: [HACKERS] Solaris ident authentication using unix domain soc
tgl@[EMAIL PROTECTED] (T  2008-07-03 14:01:22 
Re: [HACKERS] Solaris ident authentication using unix domain
ghamlin@[EMAIL PROTECTED]  2008-07-03 14:55:33 
Re: [HACKERS] Solaris ident authentication using unix domain
bruce@[EMAIL PROTECTED]   2008-08-22 13:27:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 11:35:31 CST 2008.