[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#7786) Impossible to modify cn=config if olcDbDirectory doesn't exist



pierangelo.masarati@polimi.it wrote:
> On 01/15/2014 09:59 AM, raphael.ouazana@linagora.com wrote:
>> Full_Name: Raphael Ouazana
>> Version: 2.4.38
>> OS: Linux
>> URL: ftp://ftp.openldap.org/incoming/
>> Submission from: (NULL) (88.173.78.196)
>>
>>
>> Hi,
>>
>> I have an old configuration that I would like to export/reimport. The
>> olcDbDirectory item of this configuration contains a directory that does not
>> longer exist.
>> It it then impossible to modify the parameter:
>> - I was told not to edit directly LDIF config files
>> - if i try a slapcat -n0 I get:
>> 52d64c91 olcDbDirectory: value #0: invalid path: No such file or directory
>> 52d64c91 config error processing olcDatabase={2}hdb,cn=config: olcDbDirectory:
>> value #0: invalid path: No such file or directory
>> slapcat: bad configuration directory!
>>
>> I think slapcat should always allow to export a configuration.
>
> I see the point; slapcat is failing because to export the configuration
> (c->op == SLAP_CONFIG_EMIT) it needs to read the configuration first,
> and it reads the whole config tree.
>
> Perhaps when slapcat of only the config database is requested, config
> parsing should skip other databases, or at least ignore errors, if possible.

Agreed, we definitely need this.
>
> p.
>
>


-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/