[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: PF_LOCAL in getaddrinfo (ldapi:///)



On Mon, Jul 23, 2001 at 08:19:37PM +0200, Stig Venaas wrote:
> I had planned to respond to your ITS report.

Hmm, I can't find any report now, maybe it was just my imagination.

> On Mon, Jul 23, 2001 at 11:49:17AM -0600, Oscar Bonilla wrote:
> > I was trying to compile OpenLDAP 2.0.11 with support for ldapi:///
> > which uses the PF_LOCAL family. However, I've discovered that
> > the PF_LOCAL entry in getaddrinfo is ifdef'd out in FreeBSD.

I've been discussing this with several developers. It was supported
by getaddrinfo() on Linux (and also KAME long ago), but it is being
removed, so it is clear that we shouldn't use it. I've now changed
devel to not use getaddrinfo() and we should also change in 2.0. Even
though I'm pretty sure that change is fine, please test it. You can
either try devel, or you should be able to apply the patch at
http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/daemon.c.diff?r1=1.187&r2=1.188

to the version you're using. The patch is large but the change is small.

> > Is this an error in the way OpenLDAP uses getaddrinfo or is there
> > a reason for the OS's not supporting AF_LOCAL in calls to getaddrinfo?

In my opinion there's no reason not to implement it, but PF_LOCAL with
getaddrinfo() is of limited use.

Stig