Changes

Jump to: navigation, search

LDAP C SDK

504 bytes added, 18:06, 17 January 2007
no edit summary
Contact: Mark Smith <[mailto:mcs@pearlcrescent.com mcs@pearlcrescent.com]>
Discussion: [news://news.mozilla.org/mozilla.dev.tech.ldap mozilla.dev.tech.ldap]
 
===Latest News - 1/17/2007===
Version 6.0.2 has been released! This version exports libldif as a public interface and shared library. Now you can get rid of that old, crufty LDIF parsing code you've been maintaining :-) The CVS tag is LDAPCSDK_6_0_2_RTM. You can find the source here:
ftp://ftp.mozilla.org/pub/mozilla.org/directory/c-sdk/releases/v6.0.2/src
 
Sun has completed the merge of their code back into Mozilla! The code lives on the sun_merge_branch_20060523 and we are in the process of merging that code back onto the CVS trunk.
===Latest News - 10/12/2006===
# Get the CVS client and set your computer up mozilla work. Read through the instructions on using CVS. Make sure you have set your CVSROOT environment variable and that you have successfully executed the cvs login command.
# Pull the current LDAP C SDK code (which is located on the CVS trunk) using this command: cvs co -P [-r currentrelease] DirectorySDKSourceC The most current release is LDAPCSDK_6_0_0_RTMLDAPCSDK_6_0_2_RTM, so to pull this version (recommended), use this command: cvs co -P -r LDAPCSDK_6_0_0_RTM LDAPCSDK_6_0_2_RTM DirectorySDKSourceC
# Pull the code for libraries that LDAP C SDK depends on. Pull NSPR, NSS, and DBM (used by NSS) using these commands:
cvs co -r NSPR_4_6_3_RTM NSPR_4_6_4_RTM mozilla/nsprpub cvs co -r NSS_3_11_3_RTM NSS_3_11_4_RTM mozilla/security/coreconf mozilla/security/nss mozilla/security/dbm mozilla/dbm
There is an optional package called SVRCORE which provides secure PIN management for the command line and Windows clients. This is recommended for using the command line tools with SSL, for a more secure environment.
cvs co -r SVRCORE_4_0_2_RTM SVRCORE_4_0_3_RTM mozilla/security/svrcore [mozilla/security/coreconf]
Add mozilla/security/coreconf if you didn't checkout NSSon Windows only. Alternatively, you can download stable binary releases of NSPR and NSS and drop them into your source tree under mozilla/dist. See ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/ for NSPR releases and ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/ for NSS releases.
===Obtaining Build Tools and Setting Up Your Environment===
# [Optional - see above] Build the SVRCORE module:
cd mozilla/security/svrcore
./configure [--with-nspr=/path] [--with-nss=/path]
make [USE_64=1]
# Read the NSS Build Instructions and the NSPR Build Instructions if you run into problems. Note that the instructions for NSS say to use the NSS_3_9_RTM tag to pull the source, but use NSS_3_11_RTM NSS_3_11_4_RTM instead. Build the LDAP C SDK libraries:
cd mozilla/directory/c-sdk
./configure --with-nss [--enable-64bit]
make [USE_64=1]
# Build the LDAP C SDK libraries and command line tools:
cd mozilla/directory/c-sdk
./configure --with-nss --enable-clu [--enable-64bit]
make [USE_64=1]
# Build the LDAP C SDK libraries and command line tools with SVRCORE:
cd mozilla/directory/c-sdk
./configure --with-svrcore --enable-clu [--enable-64bit]
make [USE_64=1]
# Build with SASL support:
cd mozilla/directory/c-sdk
If your build is successful, the LDAP C SDK libraries, command line tools, and header files will be placed under mozilla/dist/<OSNAME>.OBJ/.
 
If you like, you can run an acceptance test. (How?)
Note that you can build without SSL support by skipping the NSS related build steps and omitting the --with-nss on the configure command. You will still need a binary copy of NSPR or you will need to build NSPR from source.
54
edits

Navigation menu