From nobody@FreeBSD.org  Wed Sep 11 09:42:27 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 35C5737B400
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 11 Sep 2002 09:42:27 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C697B43E42
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 11 Sep 2002 09:42:26 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g8BGgQOT060708
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 11 Sep 2002 09:42:26 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.4/8.12.4/Submit) id g8BGgQaR060707;
	Wed, 11 Sep 2002 09:42:26 -0700 (PDT)
Message-Id: <200209111642.g8BGgQaR060707@www.freebsd.org>
Date: Wed, 11 Sep 2002 09:42:26 -0700 (PDT)
From: Attila Nagy <bra@fsn.hu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Badly formed slapd_args in ports/net/openldap2/files/slapd.sh
X-Send-Pr-Version: www-1.0

>Number:         42662
>Category:       ports
>Synopsis:       Badly formed slapd_args in ports/net/openldap2/files/slapd.sh
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 11 09:50:02 PDT 2002
>Closed-Date:    Thu Sep 19 14:50:51 PDT 2002
>Last-Modified:  Thu Sep 19 14:50:51 PDT 2002
>Originator:     Attila Nagy
>Release:        FreeBSD 4-STABLE
>Organization:
>Environment:
FreeBSD sendmail.bmf.hu 4.7-PRERELEASE FreeBSD 4.7-PRERELEASE #0: Tue Sep 10 16:03:53 CEST 2002   root@sendmail.bmf.hu:/usr/obj/usr/src/sys/SENDMAIL  i386
>Description:
In the given file there are some sample slapd_args lines, for example the first:
slapd_args='-h "ldap://0.0.0.0";'
When it is commented out, slapd won't start, but will die with the following error message:
daemon: listen URL ""ldap://0.0.0.0";' parse error=3
slapd stopped.
connections_destroy: nothing to destroy.

The correct line seems to be either:
slapd_args='-h ldap://0.0.0.0/;' or simply
slapd_args='-h ldap://0.0.0.0/'

Also, the last example is bad, too:
slapd_args='-h "ldap://[::];'

Removing the (unbalanced) " seems to help:
slapd_args='-h ldap://[::];'

>How-To-Repeat:
      
>Fix:
      
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ijliao 
State-Changed-When: Thu Sep 19 14:50:39 PDT 2002 
State-Changed-Why:  
committed, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42662 
>Unformatted:
