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

Re: slapd segfaults with bad LDAP URL (ITS#2132)



On Wed, Oct 09, 2002 at 06:46:46PM +0000, hyc@highlandsun.com wrote:
> > -----Original Message-----
> > From: Hallvard B Furuseth [mailto:h.b.furuseth@usit.uio.no]
> 
> > > The code is set to loop through all the addresses that a hostname
> > > lookup returns. It will only fail when all of the addresses fail. If
> > > you get EADDRINUSE on one of them, but another succeeds, it will
> > > consider this a success.
> >
> > That sounds like a bug: I wouldn't want slapd to start
> > happily with only
> > v6 without and let me think it had v4 (too).  For now I can
> > give the -4
> > option to avoid that, but when the time comes that I do want
> > v6 as well
> > it could become a problem.  Or if it started as v6-only while I only
> > wanted v4 and didn't know about v6.
> 
> I guess I agree with you. I've now changed it to fail instead of continue
> when bind fails.

This might be problematic on say Linux where one normally first binds to
the v6-any address and then when one after that binds to v4-any will get
EADDRINUSE. Please see the fix I did in ver 1.221 of daemon.c. I hope
this still works, else slapd won't work with IPv4 on Linux.

Stig