[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: MoNSS support in openldap
- To: Silvan Marco Fin <silvan@kernelconcepts.de>
- Subject: Re: MoNSS support in openldap
- From: Rich Megginson <rich.megginson@gmail.com>
- Date: Mon, 27 Sep 2010 09:23:35 -0600
- Cc: openldap-technical@openldap.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=CV5EH2v0iBKvnPymZyP9cisNz5UwzFgX/7wooJhE3Xc=; b=ivnfi+JbfOz+aemoM7pCORui4l9MfiEfA7t5cIptdDV+XVBfDMX+kaDFXzO6/1xlY9 wEhz3sQVy5rrjjh+ZibBttuN94ECfZCsi3FQzDpbBd6xHdMOeMDkhv8Ut0BqDcV8u0Uw hDKX/MiH6DN6R8NuRfQwFPaf3rBRRQhZ55THM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=pD5J21RFZRB5pwP+mnqFFGroSgPKYTntuzZAyEjXdP5oNgWsq9tPVqyOhnaTAVr2r0 AKesZLqp1cLex0wg07Jmgq2pitS6UY/SuDZx6gCmuFcTua4Q5O7DQyS6OgsFV9oWWpcA OE+e/KiJ+x7AE3ke+MtBCtjQwXizrGuYu0JjQ=
- In-reply-to: <4C9CDF00.1050308@kernelconcepts.de>
- References: <4C9CDF00.1050308@kernelconcepts.de>
- User-agent: Thunderbird 2.0.0.24 (X11/20100702)
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
mkdir include ; cd include ; ln -s /usr/include/nss3 nss ; cd ..
fi
if [ ! -d include/nspr ] ; 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
mkdir include ; cd include ; ln -s /usr/include/nspr4 nspr ; cd ..
fi
TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
LIBS="$TLS_LIBS" CFLAGS="-g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic $EXTRA_CFLAGS" ../ol2.4.23/configure --with-tls=no
...other configure args...
Kind regards,
Silvan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkyc3wAACgkQ9s/B3wYT4543twCfcdYTtJyeKbtiJoT8yFZblvDb
8DQAmwfZpxpoaHic1ZIpovUeH+jqzo1d
=ih5n
-----END PGP SIGNATURE-----