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

Re: MoNSS support in openldap



Rich Megginson wrote:
Silvan Marco Fin wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

  Is there any magic to be cast upon openldap to enable the MozNSS
support when compiling it? Perhaps I'm missing something, but there
doesn't seem to be a configure switch to enable NSS, like with Gnutls or
OpenSSL.

It is not yet supported by configure.  In the meantime, you have to do
something like this (I use 64-bit RHEL and Fedora, so your OS may vary):
This assumes you have openldap from a source tarball or CVS in a
directory called ol2.4.23:
ls
ol2.4.23/

mkdir build
cd build # I don't build "in tree" - I build in a separate directory
EXTRA_CFLAGS="-I/usr/include/nss3 -I/usr/include/nspr4 -DHAVE_TLS
-DHAVE_MOZNSS"
if [ ! -d include/nss ] ; then
         # openldap uses the #include<nss/file.h>  style, but nspr and
nss use the
         # #include<file.h>  style - so we have to accommodate both styles

Ah yes, I forgot to mention this detail. There is no standardized location for the MozNSS header files. Ubuntu/Debian puts them in a different place, and I seem to recall that OpenSuSE does as well. (And I originally started this work on Ubuntu...)

--
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/