cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: LDAP support

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 7 May 2010 22:56:32 +0200 (CEST)

On Fri, 7 May 2010, Howard Chu wrote:

> Looking at the code, it appears that libcurl always connects to the target
> server before dropping into any URL handler code. And this LDAP module
> totally ignores that, and does its own ldap_init which creates another
> connection. So every use of LDAP creates a redundant socket / connection. Am
> I right?

You're the LDAP guy here, you tell us! ;-) I don't know anything about
OpenLDAP really, but the man page for ldap_init() says "does not open a
connection to the LDAP server." and that it "will occur when the first
operation is attempted.".

But I don't know which function that "the first operation" refers to in our
case.

> I wonder if the NOVELL_LDAPSDK support is worthwhile any more. Novell has
> been shipping a repackaged OpenLDAP client library for several years now.

Guenter might have a clue. You reading this? Any word on NOVELL_LDAPSDK?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-05-07