Still encountered in upgrade to 14.04, due to a few cases of a missing -h parameter to grep when finding the value of olcDbDirectory. In my case the suffix is stored in two backends, one of them on disk, causing a grep with more than one file on the command line, and thus the result of grep beeing prefixed with "<filename>:", which again causes "| cut -d: -f 2" to return "olcDbDirectory" instead of "/var/lib/ldap".
Still encountered in upgrade to 14.04, due to a few cases of a missing -h parameter to grep when finding the value of olcDbDirectory. In my case the suffix is stored in two backends, one of them on disk, causing a grep with more than one file on the command line, and thus the result of grep beeing prefixed with "<filename>:", which again causes "| cut -d: -f 2" to return "olcDbDirectory" instead of "/var/lib/ldap".