From owner-freebsd-questions@FreeBSD.ORG Sun Apr 30 05:56:46 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D6F8E16A400 for ; Sun, 30 Apr 2006 05:56:46 +0000 (UTC) (envelope-from duane@greenmeadow.ca) Received: from smtpout.eastlink.ca (smtpout.eastlink.ca [24.222.0.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CBAA43D48 for ; Sun, 30 Apr 2006 05:56:46 +0000 (GMT) (envelope-from duane@greenmeadow.ca) Received: from ip03.eastlink.ca ([24.222.10.15]) by mta01.eastlink.ca (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with ESMTP id <0IYI0005XTTMHGU0@mta01.eastlink.ca> for freebsd-questions@freebsd.org; Sun, 30 Apr 2006 02:56:10 -0300 (ADT) Received: from blk-224-199-230.eastlink.ca (HELO [192.168.0.103]) ([24.224.199.230]) by ip03.eastlink.ca with ESMTP; Sun, 30 Apr 2006 02:56:45 -0300 Date: Sun, 30 Apr 2006 02:55:59 -0300 From: Duane Whitty In-reply-to: <20060428163702.GA7220@gothmog.pc> To: freebsd-questions@freebsd.org Message-id: <4454516F.3080904@greenmeadow.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAQAAA+k= References: <4451C500.6090304@greenmeadow.ca> <4451C92A.10103@greenmeadow.ca> <4451CD51.5080605@greenmeadow.ca> <20060428163702.GA7220@gothmog.pc> User-Agent: Thunderbird 1.5 (X11/20060309) Cc: Giorgos Keramidas Subject: Re: Sendmail Compile-Time Configuration - Success X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 05:56:46 -0000 Giorgos Keramidas wrote: > On 2006-04-28 05:07, Duane Whitty wrote: > >> Duane Whitty wrote: >> >>> Duane Whitty wrote: >>> >>>> I'm adding LDAP support to my Sendmail configuration. I couldn't seem >>>> to find the appropriate m4 file in which to declare my APPENDDEF >>>> statements. My course of action was to include >>>> SENDMAIL_CFLAGS+=-DLDAPMAP in make.conf. Does this seem like the >>>> correct way to do this for FreeBSD 6-STABLE? >>>> > > That would be `/etc/make.conf'. > > > > No, you probably want something similar to the way SASL2 support is > compiled into the base-system version of Sendmail. In my `make.conf' > I have the following: > > SENDMAIL_CFLAGS= -I/usr/local/include -DSASL=2 > SENDMAIL_LDFLAGS= -L/usr/local/lib > SENDMAIL_LDADD= -lsasl2 > > While adding stuff to these variables please keep in mind that GCC on > FreeBSD has a major difference from the default GCC behavior: it does *not* > add /usr/local/include to the default include path or /usr/local/lib to the > default library search path. So you will have to add them yourself, as > shown above. > > - Giorgos > > > > Hi, Thank you Giorgos, this is the right direction. Your example was most fortuitous, maybe even prescient. ;) LDAP support in Sendmail requires that SASL support also be built in. My /etc/make.conf now contains SENDMAIL_CFLAGS= -I/usr/local/include -DSASL=2 -DLDAPMAP SENDMAIL_LDFLAGS= -L/usr/local/lib SENDMAIL_LDADD= -lsasl2 -lldap -llber sendmail -d0.1 -bt now includes LDAPMAP and USE_LDAP_INIT Thanks for your help. Respectfully, Duane Whitty -- duane@greenmeadow.ca