From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Oct 14 22:50:01 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F78F1065697 for ; Tue, 14 Oct 2008 22:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0B0688FC1C for ; Tue, 14 Oct 2008 22:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9EMo062067437 for ; Tue, 14 Oct 2008 22:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9EMo0l3067436; Tue, 14 Oct 2008 22:50:00 GMT (envelope-from gnats) Resent-Date: Tue, 14 Oct 2008 22:50:00 GMT Resent-Message-Id: <200810142250.m9EMo0l3067436@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrew Daugherity Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2738106568E for ; Tue, 14 Oct 2008 22:44:59 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id D08F28FC12 for ; Tue, 14 Oct 2008 22:44:59 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id m9EMixgY062393 for ; Tue, 14 Oct 2008 22:44:59 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id m9EMixjT062392; Tue, 14 Oct 2008 22:44:59 GMT (envelope-from nobody) Message-Id: <200810142244.m9EMixjT062392@www.freebsd.org> Date: Tue, 14 Oct 2008 22:44:59 GMT From: Andrew Daugherity To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/128104: isc-dhcp30-server LDAP support broken [regression] X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2008 22:50:01 -0000 >Number: 128104 >Category: ports >Synopsis: isc-dhcp30-server LDAP support broken [regression] >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 14 22:50:00 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Andrew Daugherity >Release: 7.0 >Organization: Texas A&M University >Environment: FreeBSD inferno.tamu.edu 7.0-RELEASE-p4 FreeBSD 7.0-RELEASE-p4 #0: Tue Sep 2 19:32:35 UTC 2008 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: After upgrading dhcpd to reflect the new version and the port name change ( from isc-dhcp3-server-3.0.5_2 to isc-dhcp30-server-3.0.7_2), dhcpd failed to restart, complaining about syntax errors: ==== /usr/local/etc/dhcpd.conf line 19: semicolon expected. ldap-ssl start_tls; ^ Configuration file errors encountered -- exiting ==== After commenting out that line, it still failed, generating many errors like this: ==== LDAP line 34: expecting a declaration } ^ LDAP line 41: string constant larger than internal buffer option pxelinux.reboottime code 211 = unsigned integer 32; ^ LDAP line 49: expecting a declaration (binary garbage printed here) ^ LDAP line 59: expecting a declaration (binary garbage printed here) ^ LDAP line 59: expecting a declaration (binary garbage printed here) ^ LDAP line 65: expecting a declaration (binary garbage printed here) ^ ==== Of course, this makes dhcpd completely broken for LDAP use. >How-To-Repeat: Install isc-dhcp30-server-3.0.7_2 from ports, and enable LDAP support in the options screen. >Fix: I discovered that the port Makefile has two sites defined for the LDAP patch: 1. http://www.newwave.net/~masneyb/ 2. ftp://ftp.frm2.tum.de/pub/jpulz/FreeBSD/ It attempts to fetch dhcp-$VERSION-ldap-patch. Site 1 only has version 3.0.5, while site 2 has many versions. However, version 3.0.5 of the patch ('dhcp-3.0.5-ldap-patch') is not identical between the sites even (the version on site 2 is missing large sections of the patch). The real bug is that the patches from site 2 are broken, and this behavior is a side-effect of the upgrade: due to there not being a dhcp-3.0.7-ldap-patch on site 1, it fetches it from site 2. When the portversion was 3.0.5 it fetched from site 1 and all was well. Workaround: use the patch from site 1, which still works with 3.0.7. # ftp http://www.newwave.net/~masneyb/dhcp-3.0.5-ldap-patch # cp dhcp-3.0.5-ldap-patch /usr/ports/distfiles/dhcp-3.0.7-ldap-patch # cd /usr/ports/net/isc-dhcp30-server; make makesum # make install (or make deinstall reinstall) After doing this dhcpd works properly once more. >Release-Note: >Audit-Trail: >Unformatted: