[Bug 632051] Re: slapd dist-upgrade chown: invalid argument: `'

Nathan Stratton Treadway ubuntu.lp at nathanst.com
Tue Sep 7 22:06:33 BST 2010


Ah, okay, you are still using the slapd.conf file, rather than the
slapd.d configuration directory, so your error and the one in #450645
are more like cousins than siblings :)

> # Backend specific directives apply to this backend until another
> # 'backend' directive occurs
> database hdb
> suffix "dc="domain"
> rootdn "cn=admin,dc=domain"
> rootpw "{SSHA}<some text for a password>"
> directory "/var/lib/ldap"

Does the "suffix' line in our slapd.conf file really have three double-
quote characters in it?  If so, I suspect that's the trigger in your
case...

Specifically, when the postinst script builds the list of suffixes to process, it looks for lines that start with "suffix" and then removes *all* the " characters from the value string found -- so when it goes back to find the directory whose permissions need to be updated, it is looking for a line that says:
   suffix "dc=domain"

This doesn't match the actual existing line, 
   suffix "dc="domain"
, and so the search fails.  In this case, the get_directory() function call would return an empty string, and when "chown" is called with that empty string as the target path, it would return the 
   invalid argument: `'
error message.

-- 
slapd dist-upgrade chown: invalid argument: `'
https://bugs.launchpad.net/bugs/632051
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openldap in ubuntu.



More information about the Ubuntu-server-bugs mailing list