On Fri, Jul 04, 2008 at 01:22:15PM -0400, Mikhail Goriachev wrote:
> Hi,
[snip]
> 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 :)

G'luck,
Peter

-- 
Peter Pentchev  [EMAIL PROTECTED]    [EMAIL PROTECTED]    [EMAIL PROTECTED]
PGP key:        http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
This sentence is false.

Attachment: pgpb8FQ50dCeY.pgp
Description: PGP signature

Reply via email to