In your case, I believe the error is triggered because you have two different olcDatabase files that include the same oldSuffix line:
/etc/ldap/slapd.d/cn=config/olcDatabase={1}hdb.ldif:olcSuffix: dc=cpd,dc=co,dc=uk
/etc/ldap/slapd.d/cn=config/olcDatabase={3}ldap.ldif:olcSuffix: dc=cpd,dc=co,dc=uk
(As I mentioned earlier, the postinst script currently assumes that only one file will contain the string "olcSuffix: SUFFIX".)
Unfortunately, the patch that I just submitted wouldn't make any difference in your case (since the names of both of those files do end in ".ldif")...
Ross,
In your case, I believe the error is triggered because you have two different olcDatabase files that include the same oldSuffix line: slapd.d/ cn=config/ olcDatabase= {1}hdb. ldif:olcSuffix: dc=cpd,dc=co,dc=uk slapd.d/ cn=config/ olcDatabase= {3}ldap. ldif:olcSuffix: dc=cpd,dc=co,dc=uk
/etc/ldap/
/etc/ldap/
(As I mentioned earlier, the postinst script currently assumes that only one file will contain the string "olcSuffix: SUFFIX".)
Unfortunately, the patch that I just submitted wouldn't make any difference in your case (since the names of both of those files do end in ".ldif")...