cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: LDAP and cygwin (plus another tiny patch)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 19 Nov 2001 10:45:54 +0100 (MET)

On Fri, 16 Nov 2001, Roth, Kevin P. wrote:

> I'm trying to see if LDAP works under cygwin. So I downloaded OpenLDAP
> and compiled (cleanly I think) just the client tools (disabled slapd
> since I don't care to run a server), and I `make install`'ed it too. I
> also tried rebuilding curl after doing this.

curl shouldn't need rebuilding as it loads the ldap libraries dynamicly.

> I get the following behavior (both before and after downloading
> OpenLDAP):
>
> $ curl -v -i ldap://fdyts112.mtestnet.com/??sub?cn=kproth
> * Connected to fdyts112.mtestnet.com (XX.X.XX.XXX)
> * LDAP: ldap://fdyts112.mtestnet.com/??sub?cn=kproth (nil)
> curl: (40) The needed LDAP library/libraries couldn't be opened
>
> Is there anything obvious to you from this? OpenLDAP probably installed
> itself to /usr/local/{bin,lib,include,etc}, whereas most everything that
> comes with cygwin goes into /usr/{bin,lib,include,etc}. I don't quite
> know how to know for sure if this is my problem.

This is a dlopen() issue. I have absolutely no idea how to make that work
properly under cygwin!

The 'DynaOpen' function (lib/ldap.c line 67) is what tries to open the proper
libraries. When that fails, the return code above will be returned.

> Unrelated, but here's a small patch to update the cygwin README file, and
> also to update the Makefile to add the MITX.txt file to the binary
> distribution...

Applied. Thanks!

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2001-11-19