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

Re: ldap_set_option() performs blocking name resolution during initalization



On Thu, 2014-06-19 at 15:09 +0200, Hallvard Breien Furuseth wrote:
> On 06/19/2014 01:49 PM, Michael StrÃder wrote:
> > Hallvard Breien Furuseth wrote:
> >> It's the program's first call to libldap, so libldap needs to
> >> initialize itself.  I guess it's looking up the default host.
> >> I don't think that's documented.
> > 
> > Can this be disabled with LDAPNOINIT=1 or the accompanying call to
> > ldap_set_option()?
> 
> That's what I meant in next somewhat unclear paragraph: Get/set any
> option or create an LDAP*, this forces libldap to initialize itself.
> 
> LDAPNOINIT - I don't think that helps, it uses gethostname() and
> proceeds.  Or maybe it always does that, haven't looked too closely.
> 

(again, re-sending an e-mail to the list, previously I replied to
Hallvard only, sorry)

Fair enough, but my point is that the initialization shouldn't include
a blocking call over the network.