From nobody@FreeBSD.org  Mon Feb 26 13:19:55 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 5CE3F16A400
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Feb 2007 13:19:55 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 4DE9C13C471
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Feb 2007 13:19:55 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l1QDJtLI015583
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Feb 2007 13:19:55 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l1QDJtow015572;
	Mon, 26 Feb 2007 13:19:55 GMT
	(envelope-from nobody)
Message-Id: <200702261319.l1QDJtow015572@www.freebsd.org>
Date: Mon, 26 Feb 2007 13:19:55 GMT
From: roudoudou<roudoud0u@free.fr>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ports net/isc-dhcp3-server dhcp-3.0.5-ldap-patch needs to be updated
X-Send-Pr-Version: www-3.0

>Number:         109563
>Category:       ports
>Synopsis:       ports net/isc-dhcp3-server dhcp-3.0.5-ldap-patch needs to be updated
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 26 13:20:07 GMT 2007
>Closed-Date:    Mon Feb 26 22:21:20 GMT 2007
>Last-Modified:  Mon Feb 26 22:30:05 GMT 2007
>Originator:     roudoudou
>Release:        6.2
>Organization:
>Environment:
FreeBSD 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  i386

>Description:
hi,
I think that there is several minor issue with the current port of isc-dhcp3-server:

* the ldap-patch shipped with needs to be updated to the latest version available on http://home.ntelos.net/~masneyb/ . This updated patch fix several  issue :-)

* Seems also that there is a typo on /usr/local/share/isc-dhcp3-server/dhcp.schema. One need to do sed -e 's/dhcpFailOverUnackedUpdates/dhcpFailOverUnpackedUpdates' in order to load the dhcp schema on openlap-server

* I'm really not sure about this one, but after installing  openldap-sasl-client, openldap-server and isc-dhcp3-server, portversion -vL= tolds me that there is a " Stale dependency: isc-dhcp3-server-3.0.5 --> openldap-client-2.3.34 -- manually run 'pkgdb -F' to fix, or specify -O to force."

HTH
Thanks a lot :-)

--
Version of port installed:
* isc-dhcp3-server-3.0.5
* openldap-sasl-client-2.3.34
* openldap-server-2.3.34

>How-To-Repeat:
* Try to create several dhcpHost entry on ldap then reload the isc-dhcp3-server: dhcpd will core dumped talking about parsing errors like this one. "Feb 25 22:30:28 dell076 dhcpd: LDAP line 13: semicolon expected.
Feb 25 22:30:28 dell076 dhcpd:
Feb 25 22:30:28 dell076 dhcpd: ^
"

* Include the dhcp.schema on slapd.conf then reload slapd. The process will abort with this error message "/usr/local/share/isc-dhcp3-server/dhcp.schema: line 457: AttributeType not found: "dhcpFailOverUnackedUpdates"
"


>Fix:
* update the dhcp-3.0.5-ldap.patch contributed by Brian Masney http://home.ntelos.net/~masneyb/

* fix the small typo on the dhcp.schema shipped with the ports

* dunno
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Mon Feb 26 13:21:25 UTC 2007 
State-Changed-Why:  
Awaiting maintainers feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109563 

From: Joerg Pulz <Joerg.Pulz@frm2.tum.de>
To: bug-followup@FreeBSD.ORG
Cc: roudoudou <roudoud0u@free.fr>
Subject: Re: ports/109563: ports net/isc-dhcp3-server dhcp-3.0.5-ldap-patch
 needs to be updated
Date: Mon, 26 Feb 2007 16:15:52 +0100 (CET)

 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
 
 Hi,
 
 thanks for your report. Appended is a solution, but first some comments on 
 your points.
 
 #1
 The patch below will fix this. As the port picks up the patch from it's 
 original location, we have to modify the ports distinfo file, everytime 
 the LDAP patch gets updated. Unfortunately, i didn't received any 
 announcement for the new version of the patch.
 
 #2
 It should be dhcpFailOverUnackedUpdates NOT dhcpFailOverUnpackedUpdates, 
 so your sed line is wrong. Anyway, this is fixed in the latest version of 
 the LDAP patch.
 
 #3
 This is ports-framework related. You can add the line:
 WANT_OPENLDAP_SASL=1
 to your /etc/make.conf, to let all LDAP dependant ports depend on 
 net/openldap23-sasl-client instead of net/openldap23-client.
 I don't know any other way to achieve this.
 
 
 Major changes in the new version of the LDAP patch are:
  	* fix for ldap_read_function to avoid returning empty strings
  	  that are causing parsing errors in ldap-dynamic mode
  	* added ldap-ssl <off|start_tls|ldaps|on> option and several
  	  ldap-tls* options
  	* added ldap-referrals <on|off> option
  	* implemented a LDAP rebind function
  	* renamed dhcpd.conf option ldap-server-cn to ldap-dhcp-server-cn
  	* dhcp.schema - schema updates
 
 Beside the distinfo changes for the new LDAP patch, the 
 files/extra-patch-dlq-ldap file is slightly modified and the version 
 number for the net/isc-dhcp3-server port is bumped.
 
 
 
 - --- net_isc-dhcp3-server.diff begins here ---
 Index: Makefile
 ===================================================================
 RCS file: /home/ncvs/ports/net/isc-dhcp3-server/Makefile,v
 retrieving revision 1.119
 diff -u -r1.119 Makefile
 - --- Makefile	21 Dec 2006 19:57:23 -0000	1.119
 +++ Makefile	26 Feb 2007 14:58:28 -0000
 @@ -19,7 +19,7 @@
   MAINTAINER=	Joerg.Pulz@frm2.tum.de
   COMMENT?=	The ISC Dynamic Host Configuration Protocol server
 
 - -PORTREVISION_SERVER=	0
 +PORTREVISION_SERVER=	1
   PORTREVISION_CLIENT=	0
   PORTREVISION_RELAY=	0
   PORTREVISION_DEVEL=	0
 Index: distinfo
 ===================================================================
 RCS file: /home/ncvs/ports/net/isc-dhcp3-server/distinfo,v
 retrieving revision 1.58
 diff -u -r1.58 distinfo
 - --- distinfo	21 Feb 2007 10:57:21 -0000	1.58
 +++ distinfo	26 Feb 2007 14:58:28 -0000
 @@ -1,9 +1,9 @@
   MD5 (dhcp-3.0.5.tar.gz) = ce5d30d4645e4eab1f54561b487d1ec7
   SHA256 (dhcp-3.0.5.tar.gz) = dd445fb2a341cdd69e85693dce6f8fda1a1c9d0e98d34c01afc3e68d8037ffb6
   SIZE (dhcp-3.0.5.tar.gz) = 876591
 - -MD5 (dhcp-3.0.5-ldap-patch) = 9a58b7febb69783c15ab9dd635baee74
 - -SHA256 (dhcp-3.0.5-ldap-patch) = 9fd1caf8005288a68ede58476beec7a5a1c0b502a2adb42143013b3c901d225c
 - -SIZE (dhcp-3.0.5-ldap-patch) = 177648
 +MD5 (dhcp-3.0.5-ldap-patch) = 41cde9e9a768bf12390288465ef30bbd
 +SHA256 (dhcp-3.0.5-ldap-patch) = e700472acb890b504ae5199500a0e87ca1da607946b2f3a8a8958f82d0a277c0
 +SIZE (dhcp-3.0.5-ldap-patch) = 192308
   MD5 (dhcp-3.0.5-dlq-patch) = 0e071945cc986d7ecdfd9b41fc4a102b
   SHA256 (dhcp-3.0.5-dlq-patch) = c3fd3200eaf00fa80cb37f19bd3b9edb89497c235b5fa594a0f6f60050f64108
   SIZE (dhcp-3.0.5-dlq-patch) = 7655
 Index: files/extra-patch-dlq-ldap
 ===================================================================
 RCS file: /home/ncvs/ports/net/isc-dhcp3-server/files/extra-patch-dlq-ldap,v
 retrieving revision 1.1
 diff -u -r1.1 extra-patch-dlq-ldap
 - --- files/extra-patch-dlq-ldap	15 Jun 2005 07:21:56 -0000	1.1
 +++ files/extra-patch-dlq-ldap	26 Feb 2007 14:58:29 -0000
 @@ -4,11 +4,11 @@
    CATMANPAGES = dhcpd.cat8 dhcpd.conf.cat5 dhcpd.leases.cat5
    SEDMANPAGES = dhcpd.man8 dhcpd.conf.man5 dhcpd.leases.man5
    SRCS   = dhcpd.c dhcp.c bootp.c confpars.c db.c class.c failover.c \
 - --	 ldap.c omapi.c mdb.c stables.c salloc.c ddns.c
 - -+	 ldap.c omapi.c mdb.c stables.c salloc.c ddns.c dhcpleasequery.c
 +-	 ldap.c ldap_casa.c omapi.c mdb.c stables.c salloc.c ddns.c
 ++	 ldap.c ldap_casa.c omapi.c mdb.c stables.c salloc.c ddns.c dhcpleasequery.c
    OBJS   = dhcpd.o dhcp.o bootp.o confpars.o db.o class.o failover.o \
 - --	 ldap.o omapi.o mdb.o stables.o salloc.o ddns.o
 - -+	 ldap.o omapi.o mdb.o stables.o salloc.o ddns.o dhcpleasequery.o
 +-	 ldap.o ldap_casa.o omapi.o mdb.o stables.o salloc.o ddns.o
 ++	 ldap.o ldap_casa.o omapi.o mdb.o stables.o salloc.o ddns.o dhcpleasequery.o
    PROG   = dhcpd
    MAN    = dhcpd.8 dhcpd.conf.5 dhcpd.leases.5
 
 - --- net_isc-dhcp3-server.diff ends here ---
 
 
 
 Regards
 Joerg
 
 - -- 
 The beginning is the most important part of the work.
  				-Plato
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.2 (FreeBSD)
 
 iD8DBQFF4vmvSPOsGF+KA+MRAplXAJ0cmuNnZ1IUs36fSxkyYc5+7D77fACfYSWT
 5RP+6+AKX8x97tFNGc7f4dg=
 =WPZb
 -----END PGP SIGNATURE-----
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Mon Feb 26 16:25:58 UTC 2007 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109563 
State-Changed-From-To: feedback->closed 
State-Changed-By: miwi 
State-Changed-When: Mon Feb 26 22:21:16 UTC 2007 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109563 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/109563: commit references a PR
Date: Mon, 26 Feb 2007 22:21:07 +0000 (UTC)

 miwi        2007-02-26 22:20:59 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net/isc-dhcp3-server Makefile distinfo 
     net/isc-dhcp3-server/files extra-patch-dlq-ldap 
   Log:
   * Fix for ldap_read_function to avoid returning empty strings
           that are causing parsing errors in ldap-dynamic mode
   * Added ldap-ssl <off|start_tls|ldaps|on> option and several
           ldap-tls* options
   * Added ldap-referrals <on|off> option
   * Implemented a LDAP rebind function
   * Renamed dhcpd.conf option ldap-server-cn to ldap-dhcp-server-cn
   * Dhcp.schema - schema updates
   * Bump PORTREVISION
   
   PR:             109563
   Submitted by:   roudoudou<roudoud0u@free.fr>
   Approved by:    maintainer
   
   Revision  Changes    Path
   1.120     +1 -1      ports/net/isc-dhcp3-server/Makefile
   1.59      +3 -3      ports/net/isc-dhcp3-server/distinfo
   1.2       +4 -4      ports/net/isc-dhcp3-server/files/extra-patch-dlq-ldap
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
