Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jun 2002 15:08:35 -0500 (CDT)
From:      "Scot W. Hetzel" <hetzels@westbend.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/39800: security/cyrus-sasl: Update LDAP+MySQL Patch
Message-ID:  <200206242008.g5OK8ZX3058014@wbiW009.westbend.net>

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

>Number:         39800
>Category:       ports
>Synopsis:       security/cyrus-sasl: Update LDAP+MySQL Patch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 24 13:10:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Scot W. Hetzel
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
West Bend Internet
>Environment:
System:

FreeBSD wbiW009.westbend.net 4.6-STABLE FreeBSD 4.6-STABLE #1: Tue Jun 18 16:22:13 CDT 2002     root@wbiW009.westbend.net:/usr/obj/usr/src/src4/sys/GENERIC-SMP  i386

>Description:

	A checksum mismatch on the ldap+mysql patch due to the author had
	discoverd a bug.

	A ldap bug was found where if deref on in the config would cause
	a SEGV.

	NOTE: The patch version wasn't incremented. 

>How-To-Repeat:

>Fix:
	The attached patches updates the md5sum, and also fixes the problems
	reported in PR 38973.

	Changed Files:
	    Makefile
	    distinfo
	    pkg-install

	New Files:
	    files/patch-lib::checkpw.c

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/security/cyrus-sasl/Makefile,v
retrieving revision 1.42
diff -u -r1.42 Makefile
--- Makefile	16 May 2002 02:45:25 -0000	1.42
+++ Makefile	24 Jun 2002 19:50:42 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	cyrus-sasl
 PORTVERSION=	1.5.27
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	security ipv6
 MASTER_SITES=	ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/%SUBDIR%/ \
 		http://www.surf.org.uk/downloads/ \
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/security/cyrus-sasl/distinfo,v
retrieving revision 1.8
diff -u -r1.8 distinfo
--- distinfo	16 May 2002 02:45:25 -0000	1.8
+++ distinfo	24 Jun 2002 19:49:12 -0000
@@ -1,4 +1,4 @@
 MD5 (cyrus-sasl-1.5.27.tar.gz) = 76ea426e2e2da3b8d2e3a43af5488f3b
-MD5 (sasl-1.5.27-ldap-ssl-filter-mysql-patch4.tgz) = 3dc800b8a173adb419b6ea9ed8ba5f20
+MD5 (sasl-1.5.27-ldap-ssl-filter-mysql-patch4.tgz) = 63fb6be9941fae5bf1a7db55e062b52e
 MD5 (sasl_apop_patch.gz) = 6bf7a34b73d1c8d139d2269069d1ba4c
 MD5 (cyrus-sasl-1.5.27-ipv6-20020106.diff.gz) = b2956a084954a46ba2d751f56a80a275
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 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 ) {
>Release-Note:
>Audit-Trail:
>Unformatted:

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?200206242008.g5OK8ZX3058014>