[Pkg-openldap-devel] Bug#603544: Fix proposal to work around the '+' character in schema file names

Stefan Seelmann debian at stefan-seelmann.de
Sun Nov 25 00:31:40 UTC 2012


One option is to automate the renaming of problematic schema files in
slapd.scripts-common#migrate_to_slapd_d_style() [1]:

1. Copy all schema files with a '+' character:
    for f in '/etc/ldap/schema/*+*'; do cp $f `echo $f | sed -e
's/\(.*\)+\(.*\)/\1-\2.slapd-d-migration/'` ; done

2. Replace the inlude in slapd.conf:
    sed -e 's/\(include.*\)+\(.*\.schema\)/\1-\2.slapd-d-migration/'
/etc/ldap/slapd.conf > slapd.conf.slapd-d-migration

Is that a suitable approach? Then I'll create a patch.

[1]
http://anonscm.debian.org/viewvc/pkg-openldap/openldap/trunk/debian/slapd.scripts-common?view=markup



More information about the Pkg-openldap-devel mailing list