Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2002 20:50:03 -0700 (PDT)
From:      Scot.W.Hetzel@wbiW009.westbend.net
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/38973: Error code 1 building cyrus-sasl-1.5.27_3
Message-ID:  <200206200350.g5K3o3v71631@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/38973; it has been noted by GNATS.

From: Scot.W.Hetzel@wbiW009.westbend.net
To: freebsd-gnats-submit@FreeBSD.org, clabadie@cexpert.com
Cc:  
Subject: Re: ports/38973: Error code 1 building cyrus-sasl-1.5.27_3
Date: Wed, 19 Jun 2002 22:46:50 -0500 (CDT)

 The problem is that an OpenLDAP v2 function & variable are not defined
 when building with OpenLDAP v1.  The attached patch fixes this problem.
 
 I have also removed the 'daemon' user from the 'cyrus' group, as I 
 have no ideal as to why this user needs to be in the 'cyrus' group.
 I suspect that it was being used by one of the MTA's that was running
 as the 'daemon' user (sendmail?).
 
 The 'daemon' user had been added to the 'cyrus' group for 3+ years
 (see http://www/freebsd.org/cgi/cvsweb.cgi/ports/mail/cyrus/pkg-install v1.1).
 
 Changed Files:
     pkg-install
 
 New Files:
     files/patch-lib::checkpw.c
 
 Scot W. Hetzel
 Cyrus-SASL Maintainer
 
 Index: pkg-install
 ===================================================================
 RCS file: /home/ncvs/ports/security/cyrus-sasl/pkg-install,v
 retrieving revision 1.8
 diff -u -r1.8 pkg-install
 --- pkg-install	24 May 2002 02:01:13 -0000	1.8
 +++ pkg-install	19 Jun 2002 20:48:03 -0000
 @@ -67,9 +67,12 @@
  		fi
  		echo "*** Updated user \`${USER}'."
  	fi
 -	if ! ${PW} group mod ${USER} -m daemon; then
 -		echo "*** can't add user \`${USER}' to group \`${GROUP}'"
 -	fi
 +# Don't know why we need the daemon user in the cyrus group
 +# hopefully this doesn't affect anyone. It's a leftover from
 +# the pre-SASL cyrus-imapd (<1.6) server.
 +#	if ! ${PW} group mod ${GROUP} -m daemon; then
 +#		echo "*** can't add user \`daemon' to group \`${GROUP}'"
 +#	fi
  }
  
  create_sasldb() {
 Index: files/patch-lib::checkpw.c
 ===================================================================
 RCS file: files/patch-lib::checkpw.c
 diff -N files/patch-lib::checkpw.c
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ files/patch-lib::checkpw.c	17 Jun 2002 23:32:24 -0000
 @@ -0,0 +1,17 @@
 +--- lib/checkpw.c.orig	Mon Jun 17 18:28:29 2002
 ++++ lib/checkpw.c	Mon Jun 17 18:31:44 2002
 +@@ -1667,12 +1667,14 @@
 +     return SASL_FAIL;
 +   }
 +   /* setting dereferensing aliases mode */
 ++#ifdef LDAP_OPT_DEREF
 +   if (ldap_set_option(ld, LDAP_OPT_DEREF, (void *) &ldap_deref) != LDAP_OPT_SUCCESS) {
 +     if (reply) {
 +       *reply = "cannot set deref options";
 +     }
 +     return SASL_FAIL;
 +   }
 ++#endif
 +   /* set ssl mode if needed */
 + #ifdef LDAP_OPT_X_TLS
 +   if ( ldap_ssl_flag ) {

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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