Hi,

I did an apt-get update && apt-get upgrade on a box, then got into the
issue described at
http://lists.ltb-project.org/pipermail/ltb-users/2015-December/000653.html


> The best is to to a service slapd backupconfig *before* the upgrade. Stop
> OpenLDAP and do the upgrade.

> If you forgot to do this before upgrade,

Of course, I forgot about doing that ! But tell me, who will not ? :D
When upgrading all the packages of a server you can't think of all the
special cases that some packages could lead to. This would be a
nightmare to maintain ;)

Here is a suggestion : why not include a systematic 'backupconfig' prior
to every package upgrade ?


> If you forgot to do this before upgrade, the only way is to edit the LDIF
> files directly in slapd.d/, but you will get this warning:
> 566582ef ldif_read_file: checksum error on
> "****/slapd.d/cn=config/cn=schema/cn={3}ppolicy.ldif"
> 
> To bypass it, do a service slapd backupconfig and service slapd
> restoreconfig

What I did is to copy
/usr/local/openldap/etc/openldap/schema/ppolicy.ldif to
/slapd.d/cn=config/cn=schema/cn={3}ppolicy.ldif then editing the first
line from:

dn: cn=ppolicy,cn=schema,cn=config

to

dn: cn=ppolicy

Then slapd started without any glitch, so I don't understand why I
didn't get the warning you mention. Is it the good way to do it ?

Do I need to do anything else or should I consider the issue is solved ?
_______________________________________________
ltb-users mailing list
ltb-users@lists.ltb-project.org
http://lists.ltb-project.org/listinfo/ltb-users

Reply via email to