Philippe Payant wrote:
Where can I retrieve version 3 of the LDAP C SDK? All the tags in CVS seems to be 5.x and more, ftp.mozilla.org does not seem to have it, no search on the web yields anything (except the downed developers.netscape.com)

The code is in CVS, it's just that the tags may be difficult to decipher. There are no binary releases AFAIK.


Upgrading to version 5 is not my best option since it requires MSDEV 8 and all our stuff is MSDEV 6 (moving to 8 is planned, just not now)

You should be able to build it yourself with MSDEV6, with the command line tools and cygwin. The only thing you need that's not part of MSDEV or cygwin is the binary nsinstall.exe which is available from http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/moztools-static.zip

Note that this zip file contains a lot of other files - you should ignore them - only use nsinstall.exe, not the others. Just put nsinstall.exe in your path somewhere.

1) Grab the source - ftp://ftp.mozilla.org/pub/mozilla.org/directory/c-sdk/releases/v5.17/src/ldapcsdk-5.1.7.tar.gz
2) cd mozilla/directory/c-sdk
3) ./configure

NOTE that if you want to use SSL, you will also need to download and install NSPR and NSS. You can just grab the binaries from here:
NSPR - ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.6.1
NSS - ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_11_RTM

Just unpack them and install them somewhere in your filesystem (e.g. c:\nspr-4.6.1 and c:\nss-3.11 OR cygwin style /cygmount/c/nspr-4.6.1 etc.) Then, when you configure the ldap c-sdk, you will specify --with-nspr=/cygmount/c/nspr-4.6.1 --with-nss=/cygmount/c/nss-3.11
Then make

If you also want the command line tools (ldapsearch, etc.) use make BUILDCLU=1

If make is successful, you will have the ldap dlls in mozilla/dist/lib and the binaries in mozilla/dist/bin (or maybe the dlls will also be in the bin directory). Just make sure all of the nspr, nss, and ldap dlls are in your PATH at runtime. You might want to just dump them all in a c:\mozbin directory and add that to your PATH.



Help!

_______________________________________________
dev-tech-ldap mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-ldap

Reply via email to