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

Re: (ITS#5321) slapindex fails to create cn=config from configuration file

joshua@itsecureadmin.com wrote:
> Quanah Gibson-Mount wrote:
>> --On Thursday, January 10, 2008 9:09 PM +0000 joshua@itsecureadmin.com
>>> Full_Name: Joshua Miller
>>> Version: 2.4.7
>>> OS: CentOS 5
>>> URL: ftp://ftp.openldap.org/incoming/
>>> Submission from: (NULL) (
>> What makes you think you should be using slapindex to do this?
> The admin guide suggests that any slap* command should do this:
> 	http://www.openldap.org/doc/admin24/slapdconf2.html#cn=config
> Also, the slapd-config man page:
>         Alternatively, an existing slapd.conf file can be converted to
> the new format using slapd or any of the slap tools:
>                slaptest -f /etc/openldap/slapd.conf -F ETCDIR/slapd.d

The docs are incomplete. slapd or slaptest will always work; the other tools 
(slapadd/slapcat/slapindex) don't actually invoke the config database's 
startup routine unless you're explicitly operating on the config backend 
therefore the conversion won't occur in general.

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