Wow, I have no idea what I was thinking back then.
Most likely, the problem was the switch to the slapd.d directory really
only lets you run slaptest once. Once the directory exists, you're stuck
with it. Unless of course you delete the directory, edit slapd.conf, and
run slaptest again.
I think
Thank you for taking the time to report this bug and helping to make
Ubuntu better.
I've successfully converted the attached slapd.conf. Even though
cn=module{1}.ldif doesn't exist, back_monitor is available in
cn=module{0}.ldif:
math...@intrepid-base:~/d/cn=config$ cat cn\=module\{0\}.ldif
dn:
mkdir -p /tmp/slap/slapd.d
# save attached config to /tmp/slap
slaptest -f /tmp/slap/slapd.conf -F /tmp/slap/slapd.d
# works
# Edit /tmp/slapd/slapd.d/cn=config/cn=module{0}.ldif and remove
"olcModuleLoad: {1}back_monitor"
slaptest -f /tmp/slap/slapd.conf -F /tmp/slap/slapd.d
# does not work, wil