FreeBSD Port: openldap-server-2.4.10

Peter Pentchev roam at
Fri Jul 4 22:15:33 UTC 2008

On Fri, Jul 04, 2008 at 01:22:15PM -0400, Mikhail Goriachev wrote:
> Hi,
> I slapped together a workaround. Here's a "patch", maybe the idea of  
> it will be of some use.

Just a minor comment on the patch:

> +DBDIR=`grep directory /usr/local/etc/openldap/slapd.conf | awk '{  
> print $2 }'`

This is better written as

  awk '/directory/ {print $2}' /usr/local/etc/openldap/slapd.conf

or possibly (I'm not quite familiar with the slapd.conf syntax) even:

  awk '$1 == "directory" {print $2}' /usr/local/etc/openldap/slapd.conf

Then there's another thing - it might be better to make this depend on
the actual prefix where the OpenLDAP server is installed (it is not
necessarily /usr/local), but that's a whole different can of beer that
I'm not familiar with, since I don't even have an OpenLDAP server
installed on my system :)


Peter Pentchev	roam at    roam at    roam at
PGP key:
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
This sentence is false.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url :

More information about the freebsd-ports mailing list