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

Re: (ITS#6967) bug when migrating to cn=config with mixed-case schema names

seth@energysec.org wrote:
> Full_Name: Seth B.
> Version: 2.4.25
> OS: Ubuntu
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (
> I moved from slapd.conf to cn=config using options -F and -f (forgot the exact
> command but I think it was slapadd). I had a schema called EnergySec.ldif that
> was migrated. It showed up as
> /usr/local/etc/openldap/slapd.d/cn=config/cn=schema/cn={5}EnergySec.ldif
> following the conversion.
> However, when I tried modifying the schema using ADS and then ldapmodify, I
> would get a error 32: No such object. With slapd in foreground mode, I found
> that it was trying to access the lower-case version of the file:
> ldif_read_file: no entry file
> "/usr/local/etc/openldap/slapd.d/cn=config/cn=schema/cn={5}energysec.ldif"
> Since UNIX is case-sensitive, this obviously failed (the import kept the case as
> EnergySec.ldif).
> I fixed it by manually renaming the ldif file to lower case and changing the dn
> and cn inside the file. That was pretty hairy and I hope I didn't break anything
> else but it semes to work.

Thanks for the report, this is now fixed in git master.

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