Comment 5 for bug 574474

Revision history for this message
Nathan Stratton Treadway (nathanst) wrote :

Yes, I think that explains why you are getting the "chown: invalid argument `'" error....

Specifically, when the slapd.postinst parses through the slapd.conf file, it attempts to process "include"d files... but it assumes that the "database", "suffix", and "directory" lines for a particular database are all found in the same file.

So in your case, it looks through all the files and find a "suffix" line (i.e. presumably one found in "suffix.include"), but then when it goes to look up what directory that suffix was tied to, it isn't able to associate that suffix with the "directory" line found there in your "slapd.conf" file. (This in turn means that it ends up calling chown with an empty FILE argument, e.g.
  chown openldap ""
, which then generates the error message you see).

In the short run, since your database files do already have the correct permissions, you can probably work around this dpkg error by commenting out the "update_databases_permissions" line in slapd.postinst (its line 670 in the script for slapd 2.4.21-0ubuntu5), and then running "dpkg --configure" again.

Obviously you will be likely to have the same problem again the next time slapd is upgraded... but I don't know if there will be any easy fix for that, given the general move away from slapd.conf-style configuration....