Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Oct 2004 12:23:59 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Lewis Thompson <purple@lewiz.net>
Cc:        questions@freebsd.org
Subject:   Re: World sendmail and LDAP.
Message-ID:  <20041017112359.GC9251@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <20041017102035.GA93366@mrtall.compsoc.man.ac.uk>
References:  <20041017102035.GA93366@mrtall.compsoc.man.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help

--mvpLiMfbWzRoNl4x
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Oct 17, 2004 at 11:20:35AM +0100, Lewis Thompson wrote:

> I'm just wondering if anybody can tell me how I can build sendmail from
> world with LDAP support.  I currently have SASL support enabled in
> make.conf (copied examples from defaults/make.conf) and hoped it might
> be possible to do the same for LDAP.  Can anybody tell me if this is the
> case?  Thanks,

This is certainly possible, or, at least by my reading of various
files, it should be possible.  See the mail/sendmail port --
particularly files/site.config.m4.ldap and Makefile for details. I
think that what you need to do is:

    - install one of the net/openldap2{2,1}-{sasl-,}client ports
      according to taste

    - edit the /etc/make.conf settings and append:

      '-I/usr/local/include -DLDAPMAP'  to SENDMAIL_CFLAGS

      '-L/usr/local/lib'  to SENDMAIL_LDFLAGS (if it isn't there already)

      '-lldap -llber' to SENDMAIL_LDADD

Then recompile and reinstall sendmail.  There's plenty in
/usr/share/sendmail/cf/README on how to configure sendmail to use its
LDAP support once it has it.  I think, but I'm not at all sure, that
you should configure sendmail with both SASL and LDAP support for best
results.

I'd be interested in hearing how you get on with this -- plus it would
probably be a good note to add to the default make.conf file.

Alternatively, you can just install the mail/sendmail-ldap port.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--mvpLiMfbWzRoNl4x
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBclZPiD657aJF7eIRAsNAAKCKL2i8bY+7T7yEEaDHJZWDptcQ+QCeJoCx
+Z/vstfplvXVFPJa8FRllZc=
=z16v
-----END PGP SIGNATURE-----

--mvpLiMfbWzRoNl4x--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041017112359.GC9251>